summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2017-04-15 14:25:23 +0200
committer/dev/humancontroller <devhc@example.com>2017-04-15 14:25:23 +0200
commit9a2071a218c27735eded1a20848b6709b1339215 (patch)
treed6d246206984de00a10a4f5f49dab50910d470ea /GNUmakefile
parent4096a848870f5644edf424012bee4616646fa0dd (diff)
add a makefile option not to acquire revision information from Git
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 47bb84d..aca9145 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -288,12 +288,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