]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - users/drashna/rules.mk
Update to drashna userspace and keymaps (#3172)
[qmk_firmware.git] / users / drashna / rules.mk
index 18df665c0d41f6c2d93cea8b181ca46ecbf36d90..e299f24a1ed8805cf03a69d3cf0e912d566e5351 100644 (file)
@@ -1,5 +1,9 @@
 
-SRC += drashna.c secrets.c rgb_stuff.c
+SRC += drashna.c
+
+ifneq ("$(wildcard $(USER_PATH)/secrets.c)","")
+  SRC += secrets.c
+endif
 
 ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
   SRC += tap_dances.c
@@ -11,7 +15,8 @@ ifeq ($(strip $(NO_SECRETS)), yes)
     OPT_DEFS += -DNO_SECRETS
 endif
 
-ifdef RGBLIGHT_ENABLE
+ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
+  SRC += rgb_stuff.c
   ifeq ($(strip $(INDICATOR_LIGHTS)), yes)
       OPT_DEFS += -DINDICATOR_LIGHTS
   endif