From ec23c6b2f550f2679226da907c1d022295d453f1 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 3 Jul 2008 15:01:32 +0930 Subject: Remove static ChangeLog, autogenerate as part of make dist. Hook taken from xserver's Makefile.am --- Makefile.am | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 7052905..11064e0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,3 +20,15 @@ AUTOMAKE_OPTIONS = foreign SUBDIRS = src man + +EXTRA_DIST = ChangeLog autogen.sh + +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