summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-04-30 10:57:45 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-04-30 10:57:45 +0000
commit63ffa0af9ebf1b9ab29a545b1457acb9ef022a4e (patch)
tree4f01ce472952b07ea248c934b82e498acac655a8 /Makefile
parentc785db9a0b0c3669a83e4afc650cfecee472cdce (diff)
downloadmpv-63ffa0af9ebf1b9ab29a545b1457acb9ef022a4e.tar.bz2
mpv-63ffa0af9ebf1b9ab29a545b1457acb9ef022a4e.tar.xz
Rebuild version.h only when the working directory was updated.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26601 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c35dfc7329..92d01933c5 100644
--- a/Makefile
+++ b/Makefile
@@ -719,8 +719,11 @@ $(DEPS) recurse: help_mp.h version.h codecs.conf.h
dep depend: $(DEPS)
for part in $(PARTS); do $(MAKE) -C $$part depend; done
-# rebuild at every config.h/config.mak change:
-version.h: config.h config.mak
+# rebuild version.h each time the working copy is updated
+ifeq ($(wildcard .svn/entries),.svn/entries)
+version.h: .svn/entries
+endif
+version.h:
./version.sh `$(CC) -dumpversion`
help_mp.h: help/help_mp-en.h $(HELP_FILE)