summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-01-23 17:46:02 -0800
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-01-23 17:46:02 -0800
commit0379f5fb2b8c5860d8e2652df51ab5d8363518b2 (patch)
tree4224a5dc757aaaddcdd86470dfcb79646c7d6118 /Makefile.am
parent407a5343d87b50f8496afe76bc26396e58b1c543 (diff)
Replace static ChangeLog with dist-hook to generate from git log
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 4e379af..cb37aa3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -34,8 +34,14 @@ 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
+
+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
SED = sed