From ce1ab66fb6efb6d3991975453faf57ba01917d34 Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Thu, 23 Dec 2021 18:39:20 +0100 Subject: [PATCH] Always regenerate GitVersion.h --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1149168..454e7be 100644 --- a/Makefile +++ b/Makefile @@ -51,9 +51,12 @@ 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 + +force: + @true \ No newline at end of file