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
9 AM_CFLAGS = -I$(top_srcdir)/src
11 check_PROGRAMS = t/packtestu t/packtests t/packtestu64 t/packtests64
13 t_packtestu_SOURCES = t/packtestu.c src/pack.c src/tap.c
14 t_packtests_SOURCES = t/packtests.c src/pack.c src/tap.c
15 t_packtestu64_SOURCES = t/packtestu64.c src/pack.c src/tap.c
16 t_packtests64_SOURCES = t/packtests64.c src/pack.c src/tap.c
21 check-local: check-autotest
22 check-autotest: testsuite
23 $(SHELL) testsuite $(TESTSUITEFLAGS)
24 .PHONY: check-autotest
26 clean-local: clean-autotest
28 test ! -f testsuite || $(SHELL) testsuite --clean
29 .PHONY: clean-autotest
31 maintainer-clean-local: maintainer-clean-autotest
32 maintainer-clean-autotest:
33 rm -f testsuite package.m4
34 .PHONY: maintainerclean-autotest
38 printf 'm4_define([%s], [%s])\n' \
39 AT_PACKAGE_NAME '$(PACKAGE_NAME)' \
40 AT_PACKAGE_TARNAME '$(PACKAGE_TARNAME)' \
41 AT_PACKAGE_VERSION '$(PACKAGE_VERSION)' \
42 AT_PACKAGE_STRING '$(PACKAGE_STRING)' \
43 AT_PACKAGE_BUGREPORT '$(PACKAGE_BUGREPORT)' \
44 AT_PACKAGE_URL '$(PACKAGE_URL)' \
46 $(AM_V_at) mv -f $@.tmp $@
48 testsuite: testsuite.at package.m4
51 printf 'ERROR: Autotest was not available at configure time.\n'; \
52 printf 'You should only need it if you modified the test suite.\n'; \
53 printf 'Autotest is part of autom4te, included in the GNU\n'; \
54 printf 'Autoconf package: <https://gnu.org/s/autoconf/>\n'; \
58 $(AM_V_GEN) $(AUTOTEST) $(ATFLAGS) -p m4_include -o $@.tmp testsuite.at
60 $(AUTOTEST) $(ATFLAGS) -t m4_include:'$@: $$1' testsuite.at; \
61 $(AUTOTEST) $(ATFLAGS) -t m4_include:'$$1:' testsuite.at; \
63 $(AM_V_at) mv -f $@.tmp $@
65 EXTRA_DIST += testsuite testsuite.at package.m4
67 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/testsuite.P@am__quote@