Pau Espin Pedrol | 2ac788b | 2018-01-09 17:44:49 +0100 | [diff] [blame^] | 1 | SUBDIRS = \ |
| 2 | CommonLibs \ |
| 3 | $(NULL) |
| 4 | |
| 5 | # The `:;' works around a Bash 3.2 bug when the output is not writeable. |
| 6 | $(srcdir)/package.m4: $(top_srcdir)/configure.ac |
| 7 | :;{ \ |
| 8 | echo '# Signature of the current package.' && \ |
| 9 | echo 'm4_define([AT_PACKAGE_NAME],' && \ |
| 10 | echo ' [$(PACKAGE_NAME)])' && \ |
| 11 | echo 'm4_define([AT_PACKAGE_TARNAME],' && \ |
| 12 | echo ' [$(PACKAGE_TARNAME)])' && \ |
| 13 | echo 'm4_define([AT_PACKAGE_VERSION],' && \ |
| 14 | echo ' [$(PACKAGE_VERSION)])' && \ |
| 15 | echo 'm4_define([AT_PACKAGE_STRING],' && \ |
| 16 | echo ' [$(PACKAGE_STRING)])' && \ |
| 17 | echo 'm4_define([AT_PACKAGE_BUGREPORT],' && \ |
| 18 | echo ' [$(PACKAGE_BUGREPORT)])'; \ |
| 19 | echo 'm4_define([AT_PACKAGE_URL],' && \ |
| 20 | echo ' [$(PACKAGE_URL)])'; \ |
| 21 | } >'$(srcdir)/package.m4' |
| 22 | |
| 23 | EXTRA_DIST = testsuite.at $(srcdir)/package.m4 $(TESTSUITE) |
| 24 | TESTSUITE = $(srcdir)/testsuite |
| 25 | DISTCLEANFILES = atconfig $(NULL) |
| 26 | |
| 27 | check-local: atconfig $(TESTSUITE) |
| 28 | $(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS) |
| 29 | |
| 30 | installcheck-local: atconfig $(TESTSUITE) |
| 31 | $(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' $(TESTSUITEFLAGS) |
| 32 | |
| 33 | clean-local: |
| 34 | test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' --clean |
| 35 | |
| 36 | AUTOM4TE = $(SHELL) $(top_srcdir)/missing --run autom4te |
| 37 | AUTOTEST = $(AUTOM4TE) --language=autotest |
| 38 | $(TESTSUITE): $(srcdir)/testsuite.at $(srcdir)/package.m4 |
| 39 | $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at |
| 40 | mv $@.tmp $@ |