Always regenerate GitVersion.h

pull/1/head
Geoffrey Merck 6 years ago
parent 7aed6cb9c5
commit 8935623381

@ -57,9 +57,13 @@ removehostfiles :
/bin/rm -f $(CFGDIR)/DExtra_Hosts.txt /bin/rm -f $(CFGDIR)/DExtra_Hosts.txt
/bin/rm -f $(CFGDIR)/DCS_Hosts.txt /bin/rm -f $(CFGDIR)/DCS_Hosts.txt
GitVersion.h: GitVersion.h: force
ifneq ("$(wildcard .git/index)","") ifneq ("$(wildcard .git/index)","")
echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@ echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@
else else
echo "const char *gitversion = \"0000000000000000000000000000000000000000\";" > $@ echo "const char *gitversion = \"0000000000000000000000000000000000000000\";" > $@
endif endif
.PHONY: force
force:
@true
Loading…
Cancel
Save

Powered by TurnKey Linux.