summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-11-15 12:05:03 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-11-15 12:05:03 +0900
commit40bc898103359e1c2013585b2e043f556c23e15b (patch)
treef845b85230e9680225af92d3f73e4992502d4b77 /Makefile
parentMerge branch 'dk/libsecret-unlock-to-load-fix' into maint (diff)
parentmingw: include the full version information in the resources (diff)
downloadtgif-40bc898103359e1c2013585b2e043f556c23e15b.tar.xz
Merge branch 'js/mingw-full-version-in-resources' into maint
MinGW updates. * js/mingw-full-version-in-resources: mingw: include the full version information in the resources
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index cd75985991..ee9d5eb11e 100644
--- a/Makefile
+++ b/Makefile
@@ -1940,7 +1940,8 @@ $(SCRIPT_LIB) : % : %.sh GIT-SCRIPT-DEFINES
git.res: git.rc GIT-VERSION-FILE
$(QUIET_RC)$(RC) \
- $(join -DMAJOR= -DMINOR=, $(wordlist 1,2,$(subst -, ,$(subst ., ,$(GIT_VERSION))))) \
+ $(join -DMAJOR= -DMINOR= -DMICRO= -DPATCHLEVEL=, $(wordlist 1, 4, \
+ $(shell echo $(GIT_VERSION) 0 0 0 0 | tr '.a-zA-Z-' ' '))) \
-DGIT_VERSION="\\\"$(GIT_VERSION)\\\"" -i $< -o $@
# This makes sure we depend on the NO_PERL setting itself.