summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cloos <cloos@jhcloos.com>2007-12-06 16:38:21 -0500
committerJames Cloos <cloos@jhcloos.com>2007-12-06 16:38:21 -0500
commita3b20875b4906306b8dfc00e1981f72a35e1f2b4 (patch)
treec594fa3bbacf574c840cb18467eb831c65841cd1
parent4be232e30cd33a44a1ce6d3ec429ee6101540c62 (diff)
Replace static ChangeLog with dist-hook to generate from git log
-rw-r--r--Makefile.am10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index df53e88..df467b0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -36,3 +36,13 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = xcalibrate.pc
EXTRA_DIST = xcalibrate.pc.in
+
+EXTRA_DIST += ChangeLog
+MAINTAINERCLEANFILES = ChangeLog
+
+.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