X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/4ac33123a76ec76911d599f212e1b47412730614..02413704070c34bec00184120c4728854671d2d5:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 6556f92..82a6c0d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,14 +24,14 @@ MAINTAINERCLEANFILES = src/scan.c src/scan.h src/scan.stamp \ DISTCLEANFILES = CLEANFILES = src/validtypes.h src/namespecs.h src/ordspecs.h \ - test/typegen.h $(EXTRA_LTLIBRARIES) + $(EXTRA_LTLIBRARIES) EXTRA_DIST = bootstrap $(DX_BASEDIR)/scripts/fix-gnulib.pl m4/gnulib-cache.m4 \ src/types.lst src/validtypes.sed src/specs.lst src/namespecs.sed \ - src/ordspecs.sed test/typegen.sh src/parse.y src/parse.stamp \ - src/scan.l src/scan.stamp COPYING.WTFPL2 README.md INSTALL + src/ordspecs.sed src/parse.y src/parse.stamp src/scan.l \ + src/scan.stamp COPYING.WTFPL2 README.md INSTALL -dist_man_MANS = doc/man/cdecl99.1 doc/man/libcdecl.3 +dist_man_MANS = doc/cdecl99.1 doc/libcdecl.3 include_HEADERS = src/cdecl.h noinst_HEADERS = conf_pre.h conf_post.h src/scan.h src/parse.h \ @@ -77,9 +77,9 @@ libtest_la_SOURCES += test/declgen.c check_PROGRAMS += test/randomdecl endif -test_crossparse_LDADD = libcdecl.la libtest.la libgnu.la +test_crossparse_LDADD = libtest.la libcdecl.la libgnu.la $(test_crossparse_OBJECTS): $(gnulib_headers) -test_randomdecl_LDADD = libcdecl.la libtest.la libgnu.la +test_randomdecl_LDADD = libtest.la libcdecl.la libgnu.la $(test_randomdecl_OBJECTS): $(gnulib_headers) src/parse.lo: src/scan.h @@ -106,11 +106,6 @@ src/ordspecs.h: $(srcdir)/src/specs.lst $(srcdir)/src/ordspecs.sed < $(srcdir)/src/specs.lst > $@.tmp $(AM_V_at) mv -f $@.tmp $@ -test/typegen.h: $(srcdir)/src/types.lst $(srcdir)/test/typegen.sh - $(AM_V_GEN) $(SHELL) $(srcdir)/test/typegen.sh \ - < $(srcdir)/src/types.lst > $@.tmp - $(AM_V_at)mv -f $@.tmp $@ - # Supporting rules for gettext. include $(top_srcdir)/common/snippet/gettext.mk @@ -185,6 +180,14 @@ distcheck-hook: echo ' *** be the stub from a git checkout. The "git" and "perl"'; \ echo ' *** programs are required for ChangeLog generation to work.'; \ $(TEST_DISTRIBUTION_OR_ERROR); } >&2 + $(GENERIC_V) : 'CHECK ' NEWS; \ + $(AWK) 'NR == 1 && $$NF != "$(PACKAGE_VERSION):" \ + { print FILENAME ":" NR ":", $$0; exit 1}' \ + $(distdir)/NEWS || { \ + echo 'ERROR: *** First line of NEWS should match the package version'; \ + echo ' *** $(PACKAGE_VERSION), but that does not appear to be the case.'; \ + echo ' *** Remember to update NEWS before preparing a release.'; \ + $(TEST_DISTRIBUTION_OR_ERROR); } >&2 OPTFILES = src/options.opt .opt.h: @@ -211,6 +214,13 @@ src/cmdlist.h: src/gen-cmdlist.awk src/execute.c DISTCLEANFILES += src/cmdlist.h EXTRA_DIST += src/gen-cmdlist.awk +test/typegen.h: test/gen-typegen.awk src/types.lst + $(AM_V_GEN) $(AWK) -f $(srcdir)/test/gen-typegen.awk \ + $(srcdir)/src/types.lst >$@.tmp + $(AM_V_at) mv -f $@.tmp $@ +DISTCLEANFILES += test/typegen.h +EXTRA_DIST += test/gen-typegen.awk + # Supporting rules for bison/flex. BISON_V = $(BISON_V_@AM_V@)