Commit f821d1df authored by David Griffith's avatar David Griffith 💬

Add warning to top of generated version.h file.

parent 6d34d89e
......@@ -52,7 +52,10 @@ all: $(PROGS)
version-info: $(VERSION_INFO)
$(VERSION_INFO):
@echo "Creating $@"
@echo "#define GIT_BRANCH \"$(GIT_BRANCH)\"" > $@
@echo "/*" > $@
@echo " * This file is automatically generated. Do not edit." >> $@
@echo " */" >> $@
@echo "#define GIT_BRANCH \"$(GIT_BRANCH)\"" >> $@
@echo "#define GIT_HASH \"$(GIT_HASH)\"" >> $@
@echo "#define GIT_HASH_SHORT \"$(GIT_HASH_SHORT)\"" >> $@
@echo "#define GIT_TAG \"$(GIT_TAG)\"" >> $@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment