X-Git-Url: https://git.draconx.ca/gitweb/slotifier.git/blobdiff_plain/a8de6c1960d27f9990f4ee6c8b0db1299929d1d6..85e98504416b167f49926af4ad744649ce39fa3a:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 35666c6..9515723 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,12 +6,12 @@ ACLOCAL_AMFLAGS = -I m4 -I common/m4 -CLEANFILES = +CLEANFILES = $(EXTRA_LIBRARIES) DISTCLEANFILES = MOSTLYCLEANFILES = MAINTAINERCLEANFILES = -noinst_LTLIBRARIES = -EXTRA_DIST = +EXTRA_LIBRARIES = +EXTRA_DIST = INSTALL README.md AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib \ -DLOCALEDIR=\"$(localedir)\" @@ -20,7 +20,7 @@ AM_CFLAGS = $(LIBGERBV_CFLAGS) $(CNEARTREE_CFLAGS) bin_PROGRAMS = slotifier slotifier_SOURCES = src/slotifier.c -slotifier_LDADD = $(LIBGERBV_LIBS) $(CNEARTREE_LIBS) libgnu.la \ +slotifier_LDADD = $(LIBGERBV_LIBS) $(CNEARTREE_LIBS) libgnu.a \ $(LTLIBICONV) $(LTLIBINTL) $(HYPOT_LIBM) $(slotifier_OBJECTS): $(gnulib_headers) @@ -68,6 +68,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