X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/blobdiff_plain/2d17f059aa8a1e4670b9dad3f24556c7d97f6d45..c01bc8e8ea99252f4249434e432896c8f2ae1199:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 21b5f95..17cf7d5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,53 +6,19 @@ ACLOCAL_AMFLAGS = -I m4 -EXTRA_DIST = -SUFFIXES = - -check-local: check-autotest -check-autotest: testsuite - $(SHELL) testsuite $(TESTSUITEFLAGS) -.PHONY: check-autotest +AM_CFLAGS = -I$(top_srcdir)/src -clean-local: clean-autotest -clean-autotest: - test ! -f testsuite || $(SHELL) testsuite --clean -.PHONY: clean-autotest +check_LIBRARIES = t/libdummy.a -maintainer-clean-local: maintainer-clean-autotest -maintainer-clean-autotest: - rm -f testsuite package.m4 -.PHONY: maintainerclean-autotest +check_PROGRAMS = t/packtestu t/packtests t/packtestu64 t/packtests64 -package.m4: - $(AM_V_GEN) :; { \ - printf 'm4_define([%s], [%s])\n' \ - AT_PACKAGE_NAME '$(PACKAGE_NAME)' \ - AT_PACKAGE_TARNAME '$(PACKAGE_TARNAME)' \ - AT_PACKAGE_VERSION '$(PACKAGE_VERSION)' \ - AT_PACKAGE_STRING '$(PACKAGE_STRING)' \ - AT_PACKAGE_BUGREPORT '$(PACKAGE_BUGREPORT)' \ - AT_PACKAGE_URL '$(PACKAGE_URL)' \ - ; } >$@.tmp - $(AM_V_at) mv -f $@.tmp $@ +t_packtestu_SOURCES = t/packtestu.c src/pack.c src/tap.c +t_packtests_SOURCES = t/packtests.c src/pack.c src/tap.c +t_packtestu64_SOURCES = t/packtestu64.c src/pack.c src/tap.c +t_packtests64_SOURCES = t/packtests64.c src/pack.c src/tap.c -testsuite: testsuite.at package.m4 -if !HAVE_AUTOTEST - @:; { \ - printf 'ERROR: Autotest was not available at configure time.\n'; \ - printf 'You should only need it if you modified the test suite.\n'; \ - printf 'Autotest is part of autom4te, included in the GNU\n'; \ - printf 'Autoconf package: \n'; \ - } 1>&2 - @false -endif - $(AM_V_GEN) $(AUTOTEST) $(ATFLAGS) -p m4_include -o $@.tmp testsuite.at - $(AM_V_at) :; { \ - $(AUTOTEST) $(ATFLAGS) -t m4_include:'$@: $$1' testsuite.at; \ - $(AUTOTEST) $(ATFLAGS) -t m4_include:'$$1:' testsuite.at; \ - } >$(DEPDIR)/$(@F).P - $(AM_V_at) mv -f $@.tmp $@ - -EXTRA_DIST += testsuite testsuite.at package.m4 +DISTCLEANFILES = +EXTRA_DIST = +SUFFIXES = -@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/testsuite.P@am__quote@ +include $(top_srcdir)/snippet/autotest.mk