X-Git-Url: https://git.draconx.ca/gitweb/slotifier.git/blobdiff_plain/2ecdb0d619aafb1e874360c5a2f5e4046ed7c209..f0485d8666de9bbf155f247c9b3137159af69dab:/Makefile.am diff --git a/Makefile.am b/Makefile.am index e2c3fc3..3d9b938 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,7 +11,8 @@ DISTCLEANFILES = MOSTLYCLEANFILES = MAINTAINERCLEANFILES = EXTRA_LIBRARIES = -EXTRA_DIST = INSTALL +EXTRA_DIST = bootstrap common/scripts/fix-gnulib.pl m4/gnulib-cache.m4 \ + INSTALL README.md AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib \ -DLOCALEDIR=\"$(localedir)\" @@ -68,6 +69,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 # Supporting rules for gettext. include $(top_srcdir)/common/snippet/gettext.mk