diff --git a/Makefile b/Makefile index 9835c1f..9f295b6 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ DStarBase/DStarBase.a: BaseCommon/BaseCommon.a FORCE IRCDDB/IRCDDB.a: VersionInfo/GitVersion.h BaseCommon/BaseCommon.a FORCE $(MAKE) -C IRCDDB -VersionInfo/GitVersion.h: +VersionInfo/GitVersion.h: FORCE $(MAKE) -C VersionInfo .PHONY: clean diff --git a/VersionInfo/Makefile b/VersionInfo/Makefile index 0c6223e..0753691 100644 --- a/VersionInfo/Makefile +++ b/VersionInfo/Makefile @@ -1,5 +1,5 @@ GitVersion.h : FORCE -ifneq ("$(wildcard .git/index)","") +ifneq ("$(wildcard ../.git/index)","") @echo "#pragma once" > /tmp/$@ @echo "#include " >> /tmp/$@ @echo "const std::string gitversion(\"$(shell git rev-parse --short HEAD)\");" >> /tmp/$@