From 2df8499d24d15bfca3c928b681f64b6e8a05f0af Mon Sep 17 00:00:00 2001 From: James Cloos Date: Thu, 6 Dec 2007 16:39:05 -0500 Subject: Replace static ChangeLog with dist-hook to generate from git log --- Makefile.am | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile.am b/Makefile.am index be38f92..59e0378 100644 --- a/Makefile.am +++ b/Makefile.am @@ -10,3 +10,13 @@ randrdocdir = $(datadir)/doc/$(PACKAGE) randrdoc_DATA = randrproto.txt EXTRA_DIST = autogen.sh randrproto.pc.in $(randrdoc_DATA) + +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.1