diff options
author | /dev/humancontroller <devhc@example.com> | 2015-02-04 12:42:10 +0100 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-02-07 17:34:59 +0100 |
commit | 815b743ebf3dba8b3d78cc2f4f1f59ed4220031a (patch) | |
tree | afe4b3222c577c24c2dc34df59dc727bb0c358e1 | |
parent | 4ba1f6db099cdc734ed4d58cbb2395cd65efb726 (diff) |
add a makefile option not to acquire revision information from Git
-rw-r--r-- | GNUmakefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/GNUmakefile b/GNUmakefile index 339b28eb..8db21a6e 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -286,12 +286,14 @@ ifneq ($(BUILD_CLIENT),0) endif # Add git version info -USE_GIT= -ifeq ($(wildcard .git),.git) - GIT_REV=$(shell git show -s --pretty=format:%h-%ad --date=short) - ifneq ($(GIT_REV),) - VERSION:=$(VERSION)_GIT_$(GIT_REV) - USE_GIT=1 +ifneq ($(USE_GIT),0) + USE_GIT= + ifeq ($(wildcard .git),.git) + GIT_REV=$(shell git show -s --pretty=format:%h-%ad --date=short) + ifneq ($(GIT_REV),) + VERSION:=$(VERSION)_GIT_$(GIT_REV) + USE_GIT=1 + endif endif endif |