From 612945268191977cffde0a3fd41e3896666b19b7 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 30 Jun 2009 11:56:00 -0400 Subject: [PATCH] Makefile: Rebuild only on git head change, not touching a file --- src/Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile.in b/src/Makefile.in index b7db98f5b..79a3e702a 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -47,7 +47,7 @@ export OBJCACHE_JOBS := -j $(shell objcache --jobs "$(OBJCACHE_HOSTS)") export OBJCACHE := @objcache --read --write endif -UNDER_GIT = $(wildcard ../.git) +UNDER_GIT = $(wildcard ../.git/logs/HEAD) #********************************************************************* @@ -79,7 +79,7 @@ prefiles:: ifneq ($(UNDER_GIT),) # If local git tree... Else don't burden users prefiles:: config_rev.h # This output goes into srcdir, as we need to distribute it as part of the kit. -config_rev.h: config_rev.pl ../.git/index +config_rev.h: config_rev.pl ../.git/logs/HEAD $(PERL) config_rev.pl . >$@ endif