diff options
author | Matthias Hopf <mhopf@suse.de> | 2007-10-11 16:54:40 +0200 |
---|---|---|
committer | Matthias Hopf <mhopf@suse.de> | 2007-10-11 16:54:40 +0200 |
commit | 4834439ce62e41204367cf5356a7a1719870791f (patch) | |
tree | 88c6bb4f16bb914b398270dc5f3de5cdaef4d5cb /Makefile.am | |
parent | 2fa28afb035cf2d2efb077db58d3858c57189be4 (diff) |
Build ChangeLog from git-log automatically.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 26c83b8..104118b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -34,8 +34,9 @@ appmandir = $(APP_MAN_DIR) appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) -EXTRA_DIST = $(appman_PRE) +EXTRA_DIST = $(appman_PRE) ChangeLog autogen.sh CLEANFILES = $(appman_DATA) +MAINTAINERCLEANFILES = ChangeLog SED = sed @@ -60,3 +61,12 @@ 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 + |