summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPat Thoyts <patthoyts@users.sourceforge.net>2012-06-01 22:29:33 (GMT)
committerPat Thoyts <patthoyts@users.sourceforge.net>2013-06-04 09:11:46 (GMT)
commitbbc284d6ecaa1974c142e95272e866287694ca17 (patch)
tree63853811f91ba11ec493d9d81b848488552b6c4b /Makefile
parent2be50eae75ef1d6c83a0546ebe7309f368b5824f (diff)
downloadgit-bbc284d6ecaa1974c142e95272e866287694ca17.zip
git-bbc284d6ecaa1974c142e95272e866287694ca17.tar.gz
git-bbc284d6ecaa1974c142e95272e866287694ca17.tar.bz2
Ensure the resource file is rebuilt when the version changes.
Acked-by: Erik Faye-Lund <kusmabite@gmail.com> Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2f7a4f3..a163a75 100644
--- a/Makefile
+++ b/Makefile
@@ -1775,7 +1775,7 @@ $(SCRIPT_LIB) : % : %.sh GIT-SCRIPT-DEFINES
$(QUIET_GEN)$(cmd_munge_script) && \
mv $@+ $@
-git.res: git.rc
+git.res: git.rc GIT-VERSION-FILE
$(QUIET_RC)$(RC) \
$(join -DMAJOR= -DMINOR= -DPATCH=, $(wordlist 1,3,$(subst -, ,$(subst ., ,$(GIT_VERSION))))) \
-DGIT_VERSION="\\\"$(GIT_VERSION)\\\"" $< -o $@