1 # Copyright © 2015 Nick Bowler
3 # License WTFPL2: Do What The Fuck You Want To Public License, version 2.
4 # This is free software: you are free to do what the fuck you want to.
5 # There is NO WARRANTY, to the extent permitted by law.
7 ACLOCAL_AMFLAGS = -I m4
12 check-local: check-autotest
13 check-autotest: testsuite
14 $(SHELL) testsuite $(TESTSUITEFLAGS)
15 .PHONY: check-autotest
17 clean-local: clean-autotest
19 test ! -f testsuite || $(SHELL) testsuite --clean
20 .PHONY: clean-autotest
22 maintainer-clean-local: maintainer-clean-autotest
23 maintainer-clean-autotest:
24 rm -f testsuite package.m4
25 .PHONY: maintainerclean-autotest
29 printf 'm4_define([%s], [%s])\n' \
30 AT_PACKAGE_NAME '$(PACKAGE_NAME)' \
31 AT_PACKAGE_TARNAME '$(PACKAGE_TARNAME)' \
32 AT_PACKAGE_VERSION '$(PACKAGE_VERSION)' \
33 AT_PACKAGE_STRING '$(PACKAGE_STRING)' \
34 AT_PACKAGE_BUGREPORT '$(PACKAGE_BUGREPORT)' \
35 AT_PACKAGE_URL '$(PACKAGE_URL)' \
37 $(AM_V_at) mv -f $@.tmp $@
39 testsuite: testsuite.at package.m4
42 printf 'ERROR: Autotest was not available at configure time.\n'; \
43 printf 'You should only need it if you modified the test suite.\n'; \
44 printf 'Autotest is part of autom4te, included in the GNU\n'; \
45 printf 'Autoconf package: <https://gnu.org/s/autoconf/>\n'; \
49 $(AM_V_GEN) $(AUTOTEST) $(ATFLAGS) -p m4_include -o $@.tmp testsuite.at
51 $(AUTOTEST) $(ATFLAGS) -t m4_include:'$@: $$1' testsuite.at; \
52 $(AUTOTEST) $(ATFLAGS) -t m4_include:'$$1:' testsuite.at; \
54 $(AM_V_at) mv -f $@.tmp $@
56 EXTRA_DIST += testsuite testsuite.at package.m4
58 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/testsuite.P@am__quote@