]> git.draconx.ca Git - dxcommon.git/blob - Makefile.am
Fix DX_BASEDIR hoisting problems in base.m4.
[dxcommon.git] / Makefile.am
1 # Copyright © 2015 Nick Bowler
2 #
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.
6
7 ACLOCAL_AMFLAGS = -I m4
8
9 EXTRA_DIST =
10 SUFFIXES =
11
12 check-local: check-autotest
13 check-autotest: testsuite
14         $(SHELL) testsuite $(TESTSUITEFLAGS)
15 .PHONY: check-autotest
16
17 clean-local: clean-autotest
18 clean-autotest:
19         test ! -f testsuite || $(SHELL) testsuite --clean
20 .PHONY: clean-autotest
21
22 maintainer-clean-local: maintainer-clean-autotest
23 maintainer-clean-autotest:
24         rm -f testsuite package.m4
25 .PHONY: maintainerclean-autotest
26
27 package.m4:
28         $(AM_V_GEN) :; { \
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)' \
36         ; } >$@.tmp
37         $(AM_V_at) mv -f $@.tmp $@
38
39 testsuite: testsuite.at package.m4
40 if !HAVE_AUTOTEST
41         @:; { \
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'; \
46         } 1>&2
47         @false
48 endif
49         $(AM_V_GEN) $(AUTOTEST) $(ATFLAGS) -p m4_include -o $@.tmp testsuite.at
50         $(AM_V_at) :; { \
51           $(AUTOTEST) $(ATFLAGS) -t m4_include:'$@: $$1' testsuite.at; \
52           $(AUTOTEST) $(ATFLAGS) -t m4_include:'$$1:' testsuite.at; \
53         } >$(DEPDIR)/$(@F).P
54         $(AM_V_at) mv -f $@.tmp $@
55
56 EXTRA_DIST += testsuite testsuite.at package.m4
57
58 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/testsuite.P@am__quote@