diff options
author | 2019-09-28 11:12:31 +0300 | |
---|---|---|
committer | 2019-09-28 18:16:58 +1000 | |
commit | 29eac3a3156514ad25414e7d9725323a23cbb27b (patch) | |
tree | 3ddd96ad0d47e3574fecaad81451a15e9fb423ee /makefile | |
parent | d98ddb5419e953d40a23d7d5470f26371d7ce3a5 (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-- | makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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[]; >> $@ |