changeset 33612:4dc685f18963

build: Rebuild version.h file if git metadata changed due to new commits. While MPlayer does not currently use git, this is useful when working with git-svn clones and will ease a future transition from Subversion to git.
author diego
date Wed, 22 Jun 2011 12:08:54 +0000
parents 6aa251adfba0
children 5660f163ea79
files Makefile
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Wed Jun 22 11:48:31 2011 +0000
+++ b/Makefile	Wed Jun 22 12:08:54 2011 +0000
@@ -839,7 +839,7 @@
 	help/help_create.sh $(HELP_FILE) $(CHARSET)
 
 # rebuild version.h each time the working copy is updated
-version.h: version.sh $(wildcard .svn/entries)
+version.h: version.sh $(wildcard .svn/entries .git/logs/HEAD)
 	./$< `$(CC) -dumpversion`
 
 %$(EXESUF): %.c