summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-08-18 17:30:43 -0700
committerKeith Packard <keithp@keithp.com>2009-08-18 17:31:06 -0700
commitda12b89fb056a68e65ba363fef91d266727cb685 (patch)
treeb2e15384bf46b756216657fe1b2e6ac9bb425511 /Makefile.am
parent7d69e2b3715faed10ce21ad562fc4d25dfc5f9c1 (diff)
Create ChangeLog from git log
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 2b76b5d4..96b9dea9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1 +1,13 @@
SUBDIRS=src ao-view ao-tools ao-utils
+
+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