From 5172443c80bda633fc2dbfafe4edc3f722fc2204 Mon Sep 17 00:00:00 2001 From: David Griffith Date: Thu, 25 May 2023 18:35:04 -0700 Subject: [PATCH] Guarded VERSION and RELEASE_NOTES with ifndefs for TC's IDE compilation. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 67e1320..4cf9632 100644 --- a/Makefile +++ b/Makefile @@ -624,8 +624,12 @@ hash: $(HASH) $(HASH): ifeq ($(wildcard $(HASH)),) @echo "** Generating $@" - @echo "#define VERSION \"$(VERSION)\"" > $@ + @echo "#ifndef VERSION" > $@ + @echo "#define VERSION \"$(VERSION)\"" >> $@ + @echo "#endif" >> $@ + @echo "#ifndef RELEASE_NOTES" >> $@ @echo "#define RELEASE_NOTES \"$(RELEASE_NOTES)\"" >> $@ + @echo "#endif" >> $@ @echo "#define GIT_HASH \"$(GIT_HASH)\"" >> $@ @echo "#define GIT_HASH_SHORT \"$(GIT_HASH_SHORT)\"" >> $@ @echo "#define GIT_DATE \"$(GIT_DATE)\"" >> $@ -- 2.34.1