X-Git-Url: https://git.draconx.ca/gitweb/rarpd-dx.git/blobdiff_plain/74180c354fa89301c5a3dbdf3d15709ab16439f9..55f2ffa0fc600cad1c08b024cf73861fa063ff69:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 31d7c11..d0fcc15 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,15 +6,13 @@ ACLOCAL_AMFLAGS = -I m4 -AM_CPPFLAGS = -DIPUTILS_VERSION='PACKAGE_STRING,' - EXTRA_DIST = COPYING COPYING.WTFPL2 INSTALL README.md bootstrap XSLTPROC_MAN = $(XSLTPROC) -o $@ --nonet \ --stringparam man.output.quietly 1 \ --stringparam funcsynopsis.style ansi \ --stringparam man.th.extra1.suppress 1 \ - --stringparam iputils.version 'rarpd' \ + --stringparam package '$(PACKAGE)' \ $(XSLTPROCFLAGS) $(srcdir)/doc/custom-man.xsl DEV_TOOL_ERROR = { \ @@ -37,7 +35,7 @@ MAINTAINERCLEANFILES = $(dist_man_MANS) EXTRA_DIST += $(dist_man_MANS:.8=.xml) $(srcdir)/doc/custom-man.xsl sbin_PROGRAMS = rarpd -rarpd_SOURCES = src/rarpd.c src/iputils_common.c src/iputils_common.h +rarpd_SOURCES = src/rarpd.c # When running "make dist" in a VPATH build with a read-only srcdir, Automake # will produce a distribution with all files read-only. Moreover, the files @@ -84,3 +82,11 @@ 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