summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author feos <feos-theos@yandex.ru>2019-09-28 11:12:31 +0300
committer Vas Crabb <cuavas@users.noreply.github.com>2019-09-28 18:16:58 +1000
commit29eac3a3156514ad25414e7d9725323a23cbb27b (patch)
tree3ddd96ad0d47e3574fecaad81451a15e9fb423ee /makefile
parentd98ddb5419e953d40a23d7d5470f26371d7ce3a5 (diff)
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
Diffstat (limited to 'makefile')
-rw-r--r--makefile4
1 files changed, 2 insertions, 2 deletions
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[]; >> $@