summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
Diffstat (limited to 'quantum')
-rw-r--r--quantum/quantum.mk14
1 files changed, 7 insertions, 7 deletions
diff --git a/quantum/quantum.mk b/quantum/quantum.mk
index 62d67be9f1..3a968a1459 100644
--- a/quantum/quantum.mk
+++ b/quantum/quantum.mk
@@ -4,18 +4,18 @@ QUANTUM_DIR = quantum
SRC += $(QUANTUM_DIR)/keymap_common.c \
$(QUANTUM_DIR)/led.c
-ifdef KEYMAP
-ifneq (,$(shell grep USING_MIDI 'keymaps/keymap_$(KEYMAP).c'))
+ifdef KEYMAP_FILE
+ifneq (,$(shell grep USING_MIDI '$(KEYMAP_FILE)'))
MIDI_ENABLE=yes
-$(info * Overriding MIDI_ENABLE setting - keymap_$(KEYMAP).c requires it)
+$(info * Overriding MIDI_ENABLE setting - $(KEYMAP_FILE) requires it)
endif
-ifneq (,$(shell grep USING_UNICODE 'keymaps/keymap_$(KEYMAP).c'))
+ifneq (,$(shell grep USING_UNICODE '$(KEYMAP_FILE)'))
UNICODE_ENABLE=yes
-$(info * Overriding UNICODE_ENABLE setting - keymap_$(KEYMAP).c requires it)
+$(info * Overriding UNICODE_ENABLE setting - $(KEYMAP_FILE) requires it)
endif
-ifneq (,$(shell grep USING_BACKLIGHT 'keymaps/keymap_$(KEYMAP).c'))
+ifneq (,$(shell grep USING_BACKLIGHT '$(KEYMAP_FILE)'))
BACKLIGHT_ENABLE=yes
-$(info * Overriding BACKLIGHT_ENABLE setting - keymap_$(KEYMAP).c requires it)
+$(info * Overriding BACKLIGHT_ENABLE setting - $(KEYMAP_FILE) requires it)
endif
endif