From 17d0dc0d5a11ac740c42c008253287bdb07f57f1 Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Sun, 30 Jan 2022 06:55:51 +0100 Subject: [PATCH] #17 fix git version not being generated --- Makefile | 2 +- VersionInfo/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/$@