X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/551b61d2a837bae31c439b2d1abdc3189ad1252e..f78c5d06a8775b33890071166d56be82d9233c8b:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 83b6c6a..ef816f2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,15 +1,14 @@ -# Copyright © 2011-2012 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 \ @@ -22,6 +21,8 @@ AM_CFLAGS = $(GSL_CFLAGS) MAINTAINERCLEANFILES = src/scan.c src/scan.h src/scan.stamp \ src/parse.c src/parse.h src/parse.stamp +DISTCLEANFILES = + CLEANFILES = src/validtypes.h src/errtab.h src/namespecs.h src/ordspecs.h \ test/typegen.h @@ -70,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/libcdecl-static-symbols.sh 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 @@ -172,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 \ @@ -202,5 +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