summaryrefslogtreecommitdiff
path: root/users/konstantin/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'users/konstantin/rules.mk')
-rw-r--r--users/konstantin/rules.mk13
1 files changed, 8 insertions, 5 deletions
diff --git a/users/konstantin/rules.mk b/users/konstantin/rules.mk
index 6bda030fb0..1799d2be50 100644
--- a/users/konstantin/rules.mk
+++ b/users/konstantin/rules.mk
@@ -1,12 +1,15 @@
SRC += konstantin.c
-ifneq (,$(filter yes,$(RGBLIGHT_ENABLE) $(RGB_MATRIX_ENABLE))) # if either is yes
- SRC += rgb.c
+ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
+ SRC += rgb.c
+endif
+ifneq ($(strip $(RGB_MATRIX_ENABLE)), no)
+ SRC += rgb.c
endif
ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
- SRC += tap_dance.c
+ SRC += tap_dance.c
endif
-ifneq (,$(filter yes,$(UNICODE_ENABLE) $(UNICODEMAP_ENABLE))) # if either is yes
- SRC += unicode.c
+ifneq (,$(filter yes,$(UNICODE_ENABLE) $(UNICODEMAP_ENABLE)))
+ SRC += unicode.c
endif
EXTRAFLAGS += -flto