From 4ad0f80ec3a136d1c45ee7a9957a8acdef6d4afc Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sat, 28 Sep 2013 00:58:02 +0200 Subject: Add tools/generate-change-log Add the tools/generate-change-log script for auto-generating the ChangeLog file from the Git history when running "make dist". --- Makefile.am | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index dc166546..98542b94 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,7 @@ SUBDIRS = gl tap lib plugins plugins-scripts plugins-root po @PERLMODS_DIR@ EXTRA_DIST = config.rpath \ - ABOUT-NLS ACKNOWLEDGEMENTS AUTHORS CODING FAQ LEGAL NEWS \ + ABOUT-NLS ACKNOWLEDGEMENTS AUTHORS CODING ChangeLog FAQ LEGAL NEWS \ NP-VERSION-GEN REQUIREMENTS SUPPORT THANKS \ NPTest.pm pkg nagios-plugins.spec \ config_test/Makefile config_test/run_tests config_test/child_test.c \ @@ -15,6 +15,13 @@ ACLOCAL_AMFLAGS = -I gl/m4 -I m4 localedir = $(datadir)/locale DEFS = -DLOCALEDIR=\"$(localedir)\" +# +# The ChangeLog file is auto-generated from the Git history. We let it depend +# on NP-VERSION-GEN, as we bump our version number in that file. +# +ChangeLog: NP-VERSION-GEN + $(top_srcdir)/tools/generate-change-log > $@ + dist-hook: $(MAKE) THANKS echo ${VERSION} >$(distdir)/release -- cgit v1.2.3