summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPat Thoyts <patthoyts@users.sourceforge.net>2012-06-02 00:29:33 +0200
committerPat Thoyts <patthoyts@users.sourceforge.net>2013-06-04 11:11:46 +0200
commitbbc284d6ecaa1974c142e95272e866287694ca17 (patch)
tree63853811f91ba11ec493d9d81b848488552b6c4b /Makefile
parentWindows resource: handle dashes in the Git version gracefully (diff)
downloadgit-bbc284d6ecaa1974c142e95272e866287694ca17.tar.xz
git-bbc284d6ecaa1974c142e95272e866287694ca17.zip
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 2f7a4f3674..a163a75b4e 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 $@