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