aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core
diff options
context:
space:
mode:
authorGravatar Fred Sundvik <fsundvik@gmail.com>2016-09-04 23:26:49 +0300
committerGravatar Fred Sundvik <fsundvik@gmail.com>2016-09-04 23:26:49 +0300
commit13f3c73386da9b15b255b014f5da81cd51613ca1 (patch)
treea0b874df06c8fc6a85c8c1f982938d6a30d62e6e /tmk_core
parent6d1e916851daa7bcbd8ef31b6fbc73cb369ef1f0 (diff)
downloadqmk_firmware-13f3c73386da9b15b255b014f5da81cd51613ca1.tar.gz
Fix the ldflags.txt and obj.txt checks
There was a minor typo, which caused the files to not be generated and therefore the elf files were always linked.
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/rules.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk
index 79fc7119a..e4c8aecb2 100644
--- a/tmk_core/rules.mk
+++ b/tmk_core/rules.mk
@@ -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