From: Pat Thoyts Date: Fri, 1 Jun 2012 22:29:33 +0000 (+0100) Subject: Ensure the resource file is rebuilt when the version changes. X-Git-Url: https://repo.or.cz/w/git/dscho.git/commitdiff_plain/da7a1b1a88c6ad5fde51b6c12742da12d467a265 Ensure the resource file is rebuilt when the version changes. Acked-by: Erik Faye-Lund Acked-by: Johannes Schindelin Signed-off-by: Pat Thoyts --- diff --git a/Makefile b/Makefile index 19d981ce57..78a89b3e1c 100644 --- a/Makefile +++ b/Makefile @@ -2195,7 +2195,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 $@