]> git.draconx.ca Git - dxcommon.git/blob - Makefile.am
Import integer packing library.
[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 AM_CFLAGS = -I$(top_srcdir)/src
10
11 check_PROGRAMS = t/packtestu t/packtests t/packtestu64 t/packtests64
12
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
17
18 EXTRA_DIST =
19 SUFFIXES =
20
21 check-local: check-autotest
22 check-autotest: testsuite
23         $(SHELL) testsuite $(TESTSUITEFLAGS)
24 .PHONY: check-autotest
25
26 clean-local: clean-autotest
27 clean-autotest:
28         test ! -f testsuite || $(SHELL) testsuite --clean
29 .PHONY: clean-autotest
30
31 maintainer-clean-local: maintainer-clean-autotest
32 maintainer-clean-autotest:
33         rm -f testsuite package.m4
34 .PHONY: maintainerclean-autotest
35
36 package.m4:
37         $(AM_V_GEN) :; { \
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)' \
45         ; } >$@.tmp
46         $(AM_V_at) mv -f $@.tmp $@
47
48 testsuite: testsuite.at package.m4
49 if !HAVE_AUTOTEST
50         @:; { \
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'; \
55         } 1>&2
56         @false
57 endif
58         $(AM_V_GEN) $(AUTOTEST) $(ATFLAGS) -p m4_include -o $@.tmp testsuite.at
59         $(AM_V_at) :; { \
60           $(AUTOTEST) $(ATFLAGS) -t m4_include:'$@: $$1' testsuite.at; \
61           $(AUTOTEST) $(ATFLAGS) -t m4_include:'$$1:' testsuite.at; \
62         } >$(DEPDIR)/$(@F).P
63         $(AM_V_at) mv -f $@.tmp $@
64
65 EXTRA_DIST += testsuite testsuite.at package.m4
66
67 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/testsuite.P@am__quote@