summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cloos <cloos@jhcloos.com>2007-12-06 16:39:02 -0500
committerJames Cloos <cloos@jhcloos.com>2007-12-06 16:39:02 -0500
commitb0b45f712f8bca821a97ba4a23eca3c1dc5862bd (patch)
tree7e65e04ef0b09738b949ab6c9f5d2ec6dd104567
parent9e3be6e0e8ae6de4c50feed677a01c5286a9eadc (diff)
Replace static ChangeLog with dist-hook to generate from git log
-rw-r--r--ChangeLog0
-rw-r--r--Makefile.am10
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
deleted file mode 100644
index e69de29..0000000
--- a/ChangeLog
+++ /dev/null
diff --git a/Makefile.am b/Makefile.am
index 638cb52..55476bc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -27,3 +27,13 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = lg3dproto.pc
EXTRA_DIST = autogen.sh lg3dproto.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