From 29eac3a3156514ad25414e7d9725323a23cbb27b Mon Sep 17 00:00:00 2001 From: feos Date: Sat, 28 Sep 2019 11:12:31 +0300 Subject: allow updating version.cpp when IGNORE_GIT=1 is passed without this tweak it would only create the file if it doesn't exist, and wouldn't update an existing one --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index a7e2e4a18b5..d090057225f 100644 --- a/makefile +++ b/makefile @@ -1644,14 +1644,14 @@ $(GENDIR)/git_desc: stale | $(GEN_FOLDERS) endif ifeq (posix,$(SHELLTYPE)) -$(GENDIR)/version.cpp: $(GENDIR)/git_desc | $(GEN_FOLDERS) +$(GENDIR)/version.cpp: makefile $(GENDIR)/git_desc | $(GEN_FOLDERS) @echo '#define BARE_BUILD_VERSION "0.214"' > $@ @echo 'extern const char bare_build_version[];' >> $@ @echo 'extern const char build_version[];' >> $@ @echo 'const char bare_build_version[] = BARE_BUILD_VERSION;' >> $@ @echo 'const char build_version[] = BARE_BUILD_VERSION " ($(NEW_GIT_VERSION))";' >> $@ else -$(GENDIR)/version.cpp: $(GENDIR)/git_desc +$(GENDIR)/version.cpp: makefile $(GENDIR)/git_desc | $(GEN_FOLDERS) @echo #define BARE_BUILD_VERSION "0.214" > $@ @echo extern const char bare_build_version[]; >> $@ @echo extern const char build_version[]; >> $@ -- cgit v1.2.3-70-g09d2