summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cloos <cloos@jhcloos.com>2007-12-06 16:38:56 -0500
committerJames Cloos <cloos@jhcloos.com>2007-12-06 16:38:56 -0500
commit1ea5b191cccf465e595ac571e1c7254d0161cb8d (patch)
tree5951fabbf352b6813ab983b928ac9fb7566513de
parenta1d5ef0c73fbef3e758c51b57ac69ba9567bae04 (diff)
Replace static ChangeLog with dist-hook to generate from git log
-rw-r--r--ChangeLog5
-rw-r--r--Makefile.am10
2 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
deleted file mode 100644
index b36632c..0000000
--- a/ChangeLog
+++ /dev/null
@@ -1,5 +0,0 @@
-2004-10-21 Daniel Stone <daniel@freedesktop.org>
-
- * configure.ac:
- * xcalibratewire.h:
- Bump version to 0.1.
diff --git a/Makefile.am b/Makefile.am
index 87bcd58..2e7dee2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -27,3 +27,13 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = xcalibrateproto.pc
EXTRA_DIST = autogen.sh xcalibrateproto.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