X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/24a138b38b11dcfc5f7c360d601244af14c5488a..0bc1805c4b8135363cf0c0a98a1d84781bbea7b1:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 2efe622..01ff0a6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,15 +1,14 @@ -# Copyright © 2011-2013,2019-2020 Nick Bowler +# Copyright © 2011-2013, 2019-2021 Nick Bowler # # License WTFPL2: Do What The Fuck You Want To Public License, version 2. # This is free software: you are free to do what the fuck you want to. # There is NO WARRANTY, to the extent permitted by law. -AUTOMAKE_OPTIONS = parallel-tests color-tests ACLOCAL_AMFLAGS = -I m4 -I common/m4 # For Gnulib MOSTLYCLEANFILES = -noinst_LTLIBRARIES = +EXTRA_LTLIBRARIES = AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src \ -I$(top_builddir)/lib -I$(top_srcdir)/lib \ @@ -25,7 +24,7 @@ MAINTAINERCLEANFILES = src/scan.c src/scan.h src/scan.stamp \ DISTCLEANFILES = CLEANFILES = src/validtypes.h src/errtab.h src/namespecs.h src/ordspecs.h \ - test/typegen.h + test/typegen.h $(EXTRA_LTLIBRARIES) EXTRA_DIST = m4/gnulib-cache.m4 src/types.lst src/validtypes.sed \ src/specs.lst src/namespecs.sed src/ordspecs.sed \ @@ -72,15 +71,6 @@ $(test_crossparse_OBJECTS): $(gnulib_headers) test_randomdecl_LDADD = libcdecl.la libtest.la libgnu.la $(test_randomdecl_OBJECTS): $(gnulib_headers) -TESTS_ENVIRONMENT = SHELL='$(SHELL)' LIBTOOL='$(LIBTOOL)' EXEEXT='$(EXEEXT)' -TEST_EXTENSIONS = .sh -SH_LOG_COMPILER = $(SHELL) - -TESTS = tests/randomdecl-sanity.sh tests/crossparse-c-random.sh \ - tests/cdecl99-c-invalid.sh - -dist_check_SCRIPTS = tests/randomdecl-sanity.sed $(TESTS) - src/parse.lo: src/scan.h src/scan.lo: src/parse.h src/parse-decl.lo: src/scan.h src/parse.h @@ -174,7 +164,7 @@ FLEX_V_0 = @printf ' %$(DX_ALIGN_V)s %s\n' 'FLEX ' $<; .y.stamp: $(AM_V_at) touch $@.tmp - $(BISON_V) $(BISON) -o $*.c --defines=$*.h.tmp $(BISONFLAGS) $< + $(BISON_V) $(BISON) $(BISON_COMPAT) -o $*.c --defines=$*.h.tmp $(BISONFLAGS) $< $(AM_V_at) if cmp $*.h.tmp $*.h >/dev/null 2>&1; then \ rm -f $*.h.tmp; \ else \ @@ -204,6 +194,16 @@ FLEX_V_0 = @printf ' %$(DX_ALIGN_V)s %s\n' 'FLEX ' $<; $(MAKE) $(AM_MAKEFLAGS) $<; \ fi +atlocal: config.status + $(AM_V_GEN) :; { \ + printf ': "$${%s=%s}"\n' \ + EXEEXT '$(EXEEXT)' \ + check_PROGRAMS '$(check_PROGRAMS)' \ + ; } >$@.tmp + $(AM_V_at) mv -f $@.tmp $@ +check_DATA = atlocal +CLEANFILES += atlocal + include $(top_srcdir)/lib/gnulib.mk include $(top_srcdir)/common/snippet/glconfig.mk include $(top_srcdir)/common/snippet/autotest.mk