From 8935623381306eb4d93de07657f383592ec942be Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Tue, 10 Mar 2020 06:14:14 +0100 Subject: [PATCH] Always regenerate GitVersion.h --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 23951cd..dfbc010 100644 --- a/Makefile +++ b/Makefile @@ -57,9 +57,13 @@ removehostfiles : /bin/rm -f $(CFGDIR)/DExtra_Hosts.txt /bin/rm -f $(CFGDIR)/DCS_Hosts.txt -GitVersion.h: +GitVersion.h: force ifneq ("$(wildcard .git/index)","") echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@ else echo "const char *gitversion = \"0000000000000000000000000000000000000000\";" > $@ endif + +.PHONY: force +force: + @true \ No newline at end of file