Skip to content

Commit 796f652

Browse files
committed
Merge branch 'rj/clean-speedup'
Speed up 'make clean' on Cygwin. * rj/clean-speedup: Makefile: conditionally include GIT-VERSION-FILE
2 parents 7d6d21f + 5bc8b5d commit 796f652

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ all::
99

1010
GIT-VERSION-FILE: FORCE
1111
@$(SHELL_PATH) ./GIT-VERSION-GEN
12+
ifneq ($(MAKECMDGOALS),clean)
1213
-include GIT-VERSION-FILE
14+
endif
1315

1416
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
1517
uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not')

0 commit comments

Comments
 (0)