comparison Makefile @ 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 a39c61198f93
children 9793c290a04b
comparison
equal deleted inserted replaced
33611:6aa251adfba0 33612:4dc685f18963
837 837
838 help_mp.h: help/help_mp-en.h $(HELP_FILE) 838 help_mp.h: help/help_mp-en.h $(HELP_FILE)
839 help/help_create.sh $(HELP_FILE) $(CHARSET) 839 help/help_create.sh $(HELP_FILE) $(CHARSET)
840 840
841 # rebuild version.h each time the working copy is updated 841 # rebuild version.h each time the working copy is updated
842 version.h: version.sh $(wildcard .svn/entries) 842 version.h: version.sh $(wildcard .svn/entries .git/logs/HEAD)
843 ./$< `$(CC) -dumpversion` 843 ./$< `$(CC) -dumpversion`
844 844
845 %$(EXESUF): %.c 845 %$(EXESUF): %.c
846 $(CC) $(CC_DEPFLAGS) $(CFLAGS) -o $@ $^ 846 $(CC) $(CC_DEPFLAGS) $(CFLAGS) -o $@ $^
847 847