summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-03-19 18:53:02 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-03-19 18:53:02 -0700
commit767fdebc77faf1b7322e7068a420a7fc2bf4a376 (patch)
tree1e33c4899a0b86a8a4d1943fa3dbb0a545800aea /Makefile.am
parent421eee53c9153cfa6bb5ea27e8b8df5f186451a3 (diff)
Replace static ChangeLog with dist-hook to generate from git log
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index cf93b67..e45c79a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -34,7 +34,7 @@ AM_CFLAGS = \
$(DPY_DMX_CFLAGS) \
$(DPY_XPRINT_CFLAGS) \
$(DPY_XTST_CFLAGS)
-
+
xdpyinfo_LDADD = \
$(XDPYINFO_LIBS) \
$(DPY_XEXT_LIBS) \
@@ -60,8 +60,14 @@ appmandir = $(APP_MAN_DIR)
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
-EXTRA_DIST = $(appman_PRE)
+EXTRA_DIST = $(appman_PRE) ChangeLog
CLEANFILES = $(appman_DATA)
+MAINTAINERCLEANFILES = 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
SED = sed