summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Pat Thoyts <patthoyts@users.sourceforge.net>2012-06-01 23:29:33 +0100
committerLibravatar Pat Thoyts <patthoyts@users.sourceforge.net>2013-06-04 10:11:46 +0100
commitbbc284d6ecaa1974c142e95272e866287694ca17 (patch)
tree63853811f91ba11ec493d9d81b848488552b6c4b
parentWindows resource: handle dashes in the Git version gracefully (diff)
downloadtgif-bbc284d6ecaa1974c142e95272e866287694ca17.tar.xz
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>
-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 $@