Use $@ instead of $(COMMON_DIR)/git_hash.h.
authorDavid Griffith <dave@661.org>
Sat, 31 Mar 2018 12:25:43 +0000 (05:25 -0700)
committerDavid Griffith <dave@661.org>
Sat, 31 Mar 2018 12:25:43 +0000 (05:25 -0700)
Makefile

index 382f7815828be55a656f56fc43169f43ef657140..995af001090f77467cfd1cb7d84c0cb40172c0b6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -219,10 +219,10 @@ endif
 hash: $(HASH)
 $(HASH):
        @echo "Creating $@"
-       @echo "#define GIT_BRANCH \"$(GIT_BRANCH)\"" > $(COMMON_DIR)/git_hash.h
-       @echo "#define GIT_HASH \"$(GIT_HASH)\"" >> $(COMMON_DIR)/git_hash.h
-       @echo "#define GIT_HASH_SHORT \"$(GIT_HASH_SHORT)\"" >> $(COMMON_DIR)/git_hash.h
-       @echo "#define GIT_TAG \"$(GIT_TAG)\"" >> $(COMMON_DIR)/git_hash.h
+       @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)\"" >> $@
 
 
 # Administrative stuff