]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix name of makefile dep files
authorFred Sundvik <fsundvik@gmail.com>
Fri, 8 Jul 2016 19:59:09 +0000 (22:59 +0300)
committerFred Sundvik <fsundvik@gmail.com>
Fri, 8 Jul 2016 19:59:09 +0000 (22:59 +0300)
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.

tmk_core/rules.mk

index 543d3da8a0beb96a640dd04869b571e5ea7502e6..8d843cc983e9ad76035408b9b4f481adc5fd770d 100644 (file)
@@ -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.