aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPratyush Yadav <me@yadavpratyush.com>2020-12-18 00:42:14 +0530
committerPratyush Yadav <me@yadavpratyush.com>2020-12-18 00:42:14 +0530
commit796f6525b1338d9c325aba8c311994cb12e69b2c (patch)
tree361a52fd2f5e76610e650aeb981d3e8e84fa7b1d
parentMerge branch 'sh/macos-labels' (diff)
parentMakefile: conditionally include GIT-VERSION-FILE (diff)
downloadgit-796f6525b1338d9c325aba8c311994cb12e69b2c.tar.gz
git-796f6525b1338d9c325aba8c311994cb12e69b2c.zip
Merge branch 'rj/clean-speedup'
Speed up 'make clean' on Cygwin. * rj/clean-speedup: Makefile: conditionally include GIT-VERSION-FILE
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f10caedaa7..56c85a85c1 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,9 @@ all::
GIT-VERSION-FILE: FORCE
@$(SHELL_PATH) ./GIT-VERSION-GEN
+ifneq ($(MAKECMDGOALS),clean)
-include GIT-VERSION-FILE
+endif
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not')