summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGDR! <gdr@gdr.name>2017-11-01 12:04:42 +0100
committerGDR! <gdr@gdr.name>2017-11-01 12:04:42 +0100
commit44a23bb83ced58f9bf9e4368c507a5af0113ba48 (patch)
tree8549de995616f07505d0ac0d14393e81f1f92a0b /Makefile
parentc5438fbc05c1f2355c5484a2e67bc52531eb28cd (diff)
Generate gitversion.h only in git checkouts
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 141af4f..b94a39c 100644
--- a/Makefile
+++ b/Makefile
@@ -14,9 +14,10 @@ INCLUDES = $(wildcard *.h)
14# Targets 14# Targets
15all: tuntox 15all: tuntox
16 16
17gitversion.h: .git/HEAD .git/index 17gitversion.h: FORCE
18 @echo " GEN $@" 18 @if [ -f .git/HEAD ] ; then echo " GEN $@"; echo "#define GITVERSION \"$(shell git rev-parse HEAD)\"" > $@; fi
19 @echo "#define GITVERSION \"$(shell git rev-parse HEAD)\"" > $@ 19
20FORCE:
20 21
21tox_bootstrap.h: 22tox_bootstrap.h:
22 python generate_tox_bootstrap.py 23 python generate_tox_bootstrap.py