changeset 2905:084d367e3577 trunk

separate build_stamp.c from depend-prehook to avoid excessive stamping.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Tue, 26 Jun 2007 17:38:43 +0900
parents b1c7ad9aa9f8
children 68f3b7ff4333
files src/audacious/Makefile
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/Makefile	Sun Jun 24 21:16:25 2007 +0200
+++ b/src/audacious/Makefile	Tue Jun 26 17:38:43 2007 +0900
@@ -128,12 +128,19 @@
 endif
 
 depend-prehook: $(DBUS_BINDINGS)
+
+build_stamp.c: 
 	if [ -d ../../.hg ]; then \
 		revh=`hg tip --template 'const char *svn_stamp = "#rev#:#node|short#";\n' 2>/dev/null`; \
 		[ -z "$$revh" ] || echo "$$revh" > build_stamp.c; \
 		printf "%10s     %-20s\n" STAMP "build_stamp.c"; \
 	fi
 
+clean-prehook:
+	if [ -d ../../.hg ]; then \
+		rm -f build_stamp.c; \
+	fi
+
 DBUS_BINDINGS_SOURCES = \
 	objects.xml \
 	mpris_root.xml \