From 2a827d26cfb10dc6b1203b77c0cc91dc838d97a3 Mon Sep 17 00:00:00 2001 From: James Cloos Date: Thu, 6 Dec 2007 16:38:16 -0500 Subject: Replace static ChangeLog with dist-hook to generate from git log --- Makefile.am | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 713eddf..aa2fb39 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,3 +4,13 @@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = sm.pc EXTRA_DIST=sm.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 -- cgit v1.2.3