From aabd047545359c82eb0035f8aa77864b362e7f0e Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Tue, 24 Apr 2007 22:04:09 +0200 Subject: Add rules to generate ChangeLog. (this file was missed in a previous commit - sorry). --- Makefile.am | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 6c2b150..f77a22e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -60,7 +60,8 @@ appmandir = $(APP_MAN_DIR) appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) EXTRA_DIST += $(appman_PRE) -CLEANFILES += $(appman_DATA) +CLEANFILES += $(appman_DATA) ChangeLog +MAINTAINERCLEANFILES = ChangeLog SED = sed @@ -85,3 +86,10 @@ SUFFIXES += .$(APP_MAN_SUFFIX) .man .man.$(APP_MAN_SUFFIX): sed $(MAN_SUBSTS) < $< > $@ + +.PHONY: ChangeLog + +ChangeLog: + (GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2) + +dist-hook: ChangeLog -- cgit v1.2.3