summaryrefslogtreecommitdiffstats
path: root/tmk_core/rules.mk
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-07-08 21:59:09 +0200
committerFred Sundvik <fsundvik@gmail.com>2016-07-08 21:59:09 +0200
commite8e300d5c4dd05b806869b648b93feeff1f8a7dc (patch)
tree3aad195ebb6a404900824c104fdb6ddf98f63aea /tmk_core/rules.mk
parent8610481c372e9de02fe1ec7b77a9f3598a72a372 (diff)
downloadqmk_firmware-e8e300d5c4dd05b806869b648b93feeff1f8a7dc.tar.gz
qmk_firmware-e8e300d5c4dd05b806869b648b93feeff1f8a7dc.tar.xz
Fix name of makefile dep files
The files can't start with a .dot, as the wildcard function wont find them. So this is fixed by removing the BUILD_DIR from the name.
Diffstat (limited to 'tmk_core/rules.mk')
-rw-r--r--tmk_core/rules.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk
index 543d3da8a..8d843cc98 100644
--- a/tmk_core/rules.mk
+++ b/tmk_core/rules.mk
@@ -260,7 +260,7 @@ LST = $(patsubst %.c,$(OBJDIR)/%.lst,$(patsubst %.cpp,$(OBJDIR)/%.lst,$(patsubst
# Compiler flags to generate dependency files.
#GENDEPFLAGS = -MMD -MP -MF .dep/$(@F).d
-GENDEPFLAGS = -MMD -MP -MF $(BUILD_DIR)/.dep/$(subst /,_,$@).d
+GENDEPFLAGS = -MMD -MP -MF $(BUILD_DIR)/.dep/$(subst /,_,$(subst $(BUILD_DIR)/,,$@)).d
# Combine all necessary flags and optional flags.