summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2008-12-08 17:40:31 +0100
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-12-16 14:47:36 -0800
commit55e8d740881ef622376440819119641e67aeb285 (patch)
tree4501600dd0372f53c9c2c62c2402c370c0c75392
parent88920d0896be5194f626888d5d8b54edd1ffe1f6 (diff)
fix distcheck target
Arrange that distcleancheck ignores ChangeLog left over by distclean. Don't mention ChangeLog under *CLEANFILES, can't be rebuilt from release tarball; ChangeLog is automatically distributed, no need to mention it.
-rw-r--r--Makefile.am4
-rw-r--r--xorgversion.m43
2 files changed, 3 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index 112c7c6..265bfd7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -28,13 +28,9 @@ aclocal_DATA = xorg-macros.m4
install-data-hook:
rm -f $(DESTDIR)$(aclocaldir)/xorgversion.m4
-EXTRA_DIST = ChangeLog
-
.PHONY: ChangeLog
ChangeLog:
$(CHANGELOG_CMD)
dist-hook: ChangeLog
-
-DISTCLEANFILES = ChangeLog
diff --git a/xorgversion.m4 b/xorgversion.m4
index edfc0fb..881955d 100644
--- a/xorgversion.m4
+++ b/xorgversion.m4
@@ -67,9 +67,12 @@ AC_DEFUN([XORG_RELEASE_VERSION],[
# Defines the variable CHANGELOG_CMD as the command to generate
# ChangeLog from git.
#
+# Arrange that distcleancheck ignores ChangeLog left over by distclean.
+#
AC_DEFUN([XORG_CHANGELOG], [
CHANGELOG_CMD="(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)"
AC_SUBST([CHANGELOG_CMD])
+AC_SUBST([distcleancheck_listfiles], ['find . -type f ! -name ChangeLog -print'])
]) # XORG_CHANGELOG