]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix the ldflags.txt and obj.txt checks
authorFred Sundvik <fsundvik@gmail.com>
Sun, 4 Sep 2016 20:26:49 +0000 (23:26 +0300)
committerFred Sundvik <fsundvik@gmail.com>
Sun, 4 Sep 2016 20:26:49 +0000 (23:26 +0300)
There was a minor typo, which caused the files to not be generated
and therefore the elf files were always linked.

tmk_core/rules.mk

index 79fc7119a68584ccf694893295e9fad71ae8ce5b..e4c8aecb2cfa5a89213c324d44d1476f6503c3fe 100644 (file)
@@ -332,11 +332,13 @@ $1/compiler.txt: $1/force
        $$(CC) --version | cmp -s - $$@ || $$(CC) --version > $$@
 endef
 
+.PRECIOUS: $(MASTER_OUTPUT)/obj.txt
 $(MASTER_OUTPUT)/obj.txt: $(MASTER_OUTPUT)/force
-       echo '$(OBJ)' | cmp -s - $$@ || echo '$(OBJ)' > $$@
+       echo '$(OBJ)' | cmp -s - $@ || echo '$(OBJ)' > $@
 
+.PRECIOUS: $(MASTER_OUTPUT)/ldflags.txt
 $(MASTER_OUTPUT)/ldflags.txt: $(MASTER_OUTPUT)/force
-       echo '$(LDFLAGS)' | cmp -s - $$@ || echo '$(LDFLAGS)' > $$@
+       echo '$(LDFLAGS)' | cmp -s - $@ || echo '$(LDFLAGS)' > $@
 
 
 # We have to use static rules for the .d files for some reason