xf86-video-nv: Makefile.am

Daniel Stone daniels at kemper.freedesktop.org
Wed Dec 6 19:12:20 EET 2006


 Makefile.am |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

New commits:
diff-tree 6d02bdb71bb34205955e76a99939a7be34c676c7 (from 33e10132a87409bdfa77d5eef9f7044cb9ce1ac9)
Author: Daniel Stone <daniel at fooishbar.org>
Date:   Wed Dec 6 18:48:37 2006 +0200

    Makefile.am: make ChangeLog hook safer
    Make ChangeLog hook as safe as possible.

diff --git a/Makefile.am b/Makefile.am
index 3a02f4e..3924813 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,8 +23,10 @@ SUBDIRS = src man
 
 EXTRA_DIST = README.NV1 ChangeLog
 
-# Always regenerate the changelog
 CLEANFILES = ChangeLog
-ChangeLog: FORCE
-	git-log > ChangeLog
-FORCE:
+.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



More information about the xorg-commit mailing list