diff --git a/keyboards/planck/keymaps/abishalom/keymap.c b/keyboards/planck/keymaps/abishalom/keymap.c index 87af1d75e33..e06c33f67d2 100644 --- a/keyboards/planck/keymaps/abishalom/keymap.c +++ b/keyboards/planck/keymaps/abishalom/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { diff --git a/keyboards/planck/keymaps/abishalom/rules.mk b/keyboards/planck/keymaps/abishalom/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/abishalom/rules.mk +++ b/keyboards/planck/keymaps/abishalom/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/adamtabrams/keymap.c b/keyboards/planck/keymaps/adamtabrams/keymap.c index ce1acd437b5..80efc45839a 100644 --- a/keyboards/planck/keymaps/adamtabrams/keymap.c +++ b/keyboards/planck/keymaps/adamtabrams/keymap.c @@ -15,8 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" - +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { _QWERTY, diff --git a/keyboards/planck/keymaps/adamtabrams/rules.mk b/keyboards/planck/keymaps/adamtabrams/rules.mk index bbf6cc119e3..57754bc443f 100644 --- a/keyboards/planck/keymaps/adamtabrams/rules.mk +++ b/keyboards/planck/keymaps/adamtabrams/rules.mk @@ -1,4 +1,3 @@ -SRC += muse.c LTO_ENABLE = yes MOUSEKEY_ENABLE = yes @@ -11,3 +10,7 @@ COMMAND_ENABLE = no AUDIO_ENABLE = no ENCODER_ENABLE = no DIP_SWITCH_ENABLE = no + +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif \ No newline at end of file diff --git a/keyboards/planck/keymaps/antosha417/rules.mk b/keyboards/planck/keymaps/antosha417/rules.mk index 46976952521..57a9adf1cb9 100644 --- a/keyboards/planck/keymaps/antosha417/rules.mk +++ b/keyboards/planck/keymaps/antosha417/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif AUDIO_ENABLE = yes COMBO_ENABLE = yes diff --git a/keyboards/planck/keymaps/ariccb/keymap.c b/keyboards/planck/keymaps/ariccb/keymap.c index 5caaf1922ed..512e150c4fa 100644 --- a/keyboards/planck/keymaps/ariccb/keymap.c +++ b/keyboards/planck/keymaps/ariccb/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif #include "features/select_word.h" #include "features/caps_word.h" diff --git a/keyboards/planck/keymaps/atreus/keymap.c b/keyboards/planck/keymaps/atreus/keymap.c index 6fd8c398047..3c2735e45c6 100644 --- a/keyboards/planck/keymaps/atreus/keymap.c +++ b/keyboards/planck/keymaps/atreus/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { /* Default layer diff --git a/keyboards/planck/keymaps/atreus/rules.mk b/keyboards/planck/keymaps/atreus/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/atreus/rules.mk +++ b/keyboards/planck/keymaps/atreus/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/bghull/rules.mk b/keyboards/planck/keymaps/bghull/rules.mk index 664ed740781..10eb5322cd2 100644 --- a/keyboards/planck/keymaps/bghull/rules.mk +++ b/keyboards/planck/keymaps/bghull/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif AUTO_SHIFT_ENABLE = yes MOUSEKEY_ENABLE = yes AUDIO_ENABLE = no diff --git a/keyboards/planck/keymaps/buhearns/keymap.c b/keyboards/planck/keymaps/buhearns/keymap.c index ea7e516e340..dd13fc9bcd2 100644 --- a/keyboards/planck/keymaps/buhearns/keymap.c +++ b/keyboards/planck/keymaps/buhearns/keymap.c @@ -1,5 +1,7 @@ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif extern keymap_config_t keymap_config; diff --git a/keyboards/planck/keymaps/charlesrocket/rules.mk b/keyboards/planck/keymaps/charlesrocket/rules.mk index 6e4985a8b17..aa16faa1106 100644 --- a/keyboards/planck/keymaps/charlesrocket/rules.mk +++ b/keyboards/planck/keymaps/charlesrocket/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif # Set any rules.mk overrides for your specific keymap here. # See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file LTO_ENABLE = yes diff --git a/keyboards/planck/keymaps/copface/keymap.c b/keyboards/planck/keymaps/copface/keymap.c index 376ceeb288e..b7dd3dffc3f 100644 --- a/keyboards/planck/keymaps/copface/keymap.c +++ b/keyboards/planck/keymaps/copface/keymap.c @@ -1,5 +1,7 @@ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif // Custom Keycode Definitions #define LOWER MO(_LOWER) diff --git a/keyboards/planck/keymaps/copface/rules.mk b/keyboards/planck/keymaps/copface/rules.mk index e259574a4e4..f306dcfb0f5 100644 --- a/keyboards/planck/keymaps/copface/rules.mk +++ b/keyboards/planck/keymaps/copface/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite MOUSEKEY_ENABLE = no diff --git a/keyboards/planck/keymaps/dear_vehicle_owner/keymap.c b/keyboards/planck/keymaps/dear_vehicle_owner/keymap.c index 41388890251..477283e1fb4 100644 --- a/keyboards/planck/keymaps/dear_vehicle_owner/keymap.c +++ b/keyboards/planck/keymaps/dear_vehicle_owner/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { diff --git a/keyboards/planck/keymaps/dear_vehicle_owner/rules.mk b/keyboards/planck/keymaps/dear_vehicle_owner/rules.mk index d03e978b827..d2bb231275f 100644 --- a/keyboards/planck/keymaps/dear_vehicle_owner/rules.mk +++ b/keyboards/planck/keymaps/dear_vehicle_owner/rules.mk @@ -1,2 +1,4 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif DEBOUNCE_TYPE = sym_eager_pk diff --git a/keyboards/planck/keymaps/deft/rules.mk b/keyboards/planck/keymaps/deft/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/deft/rules.mk +++ b/keyboards/planck/keymaps/deft/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/dsanchezseco/keymap.c b/keyboards/planck/keymaps/dsanchezseco/keymap.c index 57c22bb9531..6c91f5bf525 100644 --- a/keyboards/planck/keymaps/dsanchezseco/keymap.c +++ b/keyboards/planck/keymaps/dsanchezseco/keymap.c @@ -1,5 +1,7 @@ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif #define LOWER MO(_LOWER) #define RAISE MO(_RAISE) diff --git a/keyboards/planck/keymaps/dvz/keymap.c b/keyboards/planck/keymaps/dvz/keymap.c index ff57d28cf82..7dbd748ae73 100644 --- a/keyboards/planck/keymaps/dvz/keymap.c +++ b/keyboards/planck/keymaps/dvz/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif #include "keymap_german.h" enum combos { diff --git a/keyboards/planck/keymaps/dvz/rules.mk b/keyboards/planck/keymaps/dvz/rules.mk index 7216951bf96..6877c440064 100644 --- a/keyboards/planck/keymaps/dvz/rules.mk +++ b/keyboards/planck/keymaps/dvz/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif COMBO_ENABLE = yes #VIA_ENABLE = yes diff --git a/keyboards/planck/keymaps/eosti/keymap.c b/keyboards/planck/keymaps/eosti/keymap.c index f1d66d2a913..48781ef0003 100644 --- a/keyboards/planck/keymaps/eosti/keymap.c +++ b/keyboards/planck/keymaps/eosti/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { _QWERTY, diff --git a/keyboards/planck/keymaps/eosti/rules.mk b/keyboards/planck/keymaps/eosti/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/eosti/rules.mk +++ b/keyboards/planck/keymaps/eosti/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/eshesh2/keymap.c b/keyboards/planck/keymaps/eshesh2/keymap.c index ccb1db659a8..d04e0129f89 100644 --- a/keyboards/planck/keymaps/eshesh2/keymap.c +++ b/keyboards/planck/keymaps/eshesh2/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { diff --git a/keyboards/planck/keymaps/eshesh2/rules.mk b/keyboards/planck/keymaps/eshesh2/rules.mk index 07a64e2fb60..d06afafe3e6 100644 --- a/keyboards/planck/keymaps/eshesh2/rules.mk +++ b/keyboards/planck/keymaps/eshesh2/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif ENCODER_ENABLE = yes EXTRAKEY_ENABLE = yes MOUSEKEY_ENABLE = yes diff --git a/keyboards/planck/keymaps/fabian/keymap.c b/keyboards/planck/keymaps/fabian/keymap.c index 1569ed5e985..ac755083654 100644 --- a/keyboards/planck/keymaps/fabian/keymap.c +++ b/keyboards/planck/keymaps/fabian/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif extern keymap_config_t keymap_config; diff --git a/keyboards/planck/keymaps/fabian/rules.mk b/keyboards/planck/keymaps/fabian/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/fabian/rules.mk +++ b/keyboards/planck/keymaps/fabian/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/foreveranapple/keymap.c b/keyboards/planck/keymaps/foreveranapple/keymap.c index c9d9c9f6ad3..0e6c199f233 100644 --- a/keyboards/planck/keymaps/foreveranapple/keymap.c +++ b/keyboards/planck/keymaps/foreveranapple/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { diff --git a/keyboards/planck/keymaps/foreveranapple/rules.mk b/keyboards/planck/keymaps/foreveranapple/rules.mk index 87df38d49e7..fa7b39fb73e 100644 --- a/keyboards/planck/keymaps/foreveranapple/rules.mk +++ b/keyboards/planck/keymaps/foreveranapple/rules.mk @@ -1,2 +1,4 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif AUDIO_ENABLED = yes \ No newline at end of file diff --git a/keyboards/planck/keymaps/gitdrik/keymap.c b/keyboards/planck/keymaps/gitdrik/keymap.c index c62e93671a9..2dbd86ae1b2 100644 --- a/keyboards/planck/keymaps/gitdrik/keymap.c +++ b/keyboards/planck/keymaps/gitdrik/keymap.c @@ -17,7 +17,9 @@ /* Modified from planck default to Finnish SFS 5966 by gitdrik, 2020-2023. */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { _BASE, diff --git a/keyboards/planck/keymaps/gitdrik/rules.mk b/keyboards/planck/keymaps/gitdrik/rules.mk index 67528de9c83..d695d8d5863 100644 --- a/keyboards/planck/keymaps/gitdrik/rules.mk +++ b/keyboards/planck/keymaps/gitdrik/rules.mk @@ -1,3 +1,5 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif MOUSEKEY_ENABLE = yes AUDIO_ENABLE = yes diff --git a/keyboards/planck/keymaps/grant24/keymap.c b/keyboards/planck/keymaps/grant24/keymap.c index 3af4642af56..6594b7057d0 100644 --- a/keyboards/planck/keymaps/grant24/keymap.c +++ b/keyboards/planck/keymaps/grant24/keymap.c @@ -18,7 +18,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { diff --git a/keyboards/planck/keymaps/grant24/rules.mk b/keyboards/planck/keymaps/grant24/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/grant24/rules.mk +++ b/keyboards/planck/keymaps/grant24/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/hvp/keymap.c b/keyboards/planck/keymaps/hvp/keymap.c index bd0c2cadecf..12861c854a6 100644 --- a/keyboards/planck/keymaps/hvp/keymap.c +++ b/keyboards/planck/keymaps/hvp/keymap.c @@ -15,7 +15,9 @@ */ #include "hvp.c" #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { _QWERTY, diff --git a/keyboards/planck/keymaps/hvp/rules.mk b/keyboards/planck/keymaps/hvp/rules.mk index 896115f718f..fdb9da1267e 100644 --- a/keyboards/planck/keymaps/hvp/rules.mk +++ b/keyboards/planck/keymaps/hvp/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif RGBLIGHT_ENABLE = no TAP_DANCE_ENABLE = yes \ No newline at end of file diff --git a/keyboards/planck/keymaps/inkwell/keymap.c b/keyboards/planck/keymaps/inkwell/keymap.c index 9ff91f84c19..3c1c7c6d1d3 100644 --- a/keyboards/planck/keymaps/inkwell/keymap.c +++ b/keyboards/planck/keymaps/inkwell/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { diff --git a/keyboards/planck/keymaps/inkwell/rules.mk b/keyboards/planck/keymaps/inkwell/rules.mk index afd8d7a8c6c..58792b37386 100644 --- a/keyboards/planck/keymaps/inkwell/rules.mk +++ b/keyboards/planck/keymaps/inkwell/rules.mk @@ -1,3 +1,5 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif ENCODER_ENABLE = yes EXTRAKEY_ENABLE = yes diff --git a/keyboards/planck/keymaps/jasperla/keymap.c b/keyboards/planck/keymaps/jasperla/keymap.c index 06f43b74108..dee832b8fb1 100644 --- a/keyboards/planck/keymaps/jasperla/keymap.c +++ b/keyboards/planck/keymaps/jasperla/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif extern keymap_config_t keymap_config; diff --git a/keyboards/planck/keymaps/jasperla/rules.mk b/keyboards/planck/keymaps/jasperla/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/jasperla/rules.mk +++ b/keyboards/planck/keymaps/jasperla/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/jdelkins/rules.mk b/keyboards/planck/keymaps/jdelkins/rules.mk index f17e67c234d..339090e3242 100644 --- a/keyboards/planck/keymaps/jdelkins/rules.mk +++ b/keyboards/planck/keymaps/jdelkins/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif LEADER_ENABLE = yes TAP_DANCE_ENABLE = yes AUTO_SHIFT_ENABLE = yes diff --git a/keyboards/planck/keymaps/jetpacktuxedo/keymap.c b/keyboards/planck/keymaps/jetpacktuxedo/keymap.c index 443164aba44..e4aa346c104 100644 --- a/keyboards/planck/keymaps/jetpacktuxedo/keymap.c +++ b/keyboards/planck/keymaps/jetpacktuxedo/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif extern keymap_config_t keymap_config; diff --git a/keyboards/planck/keymaps/jetpacktuxedo/rules.mk b/keyboards/planck/keymaps/jetpacktuxedo/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/jetpacktuxedo/rules.mk +++ b/keyboards/planck/keymaps/jetpacktuxedo/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/jimmysjolund/keymap.c b/keyboards/planck/keymaps/jimmysjolund/keymap.c index 02766bb125e..0e3d5bb01ee 100644 --- a/keyboards/planck/keymaps/jimmysjolund/keymap.c +++ b/keyboards/planck/keymaps/jimmysjolund/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { diff --git a/keyboards/planck/keymaps/jimmysjolund/rules.mk b/keyboards/planck/keymaps/jimmysjolund/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/jimmysjolund/rules.mk +++ b/keyboards/planck/keymaps/jimmysjolund/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/jweickm/keymap.c b/keyboards/planck/keymaps/jweickm/keymap.c index b206b8511e1..17d99885b9d 100644 --- a/keyboards/planck/keymaps/jweickm/keymap.c +++ b/keyboards/planck/keymaps/jweickm/keymap.c @@ -15,7 +15,9 @@ * along with this program. If not, see . */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { _HRWIDECOLEMAK, diff --git a/keyboards/planck/keymaps/jweickm/rules.mk b/keyboards/planck/keymaps/jweickm/rules.mk index 067ac4768c9..f4199390739 100644 --- a/keyboards/planck/keymaps/jweickm/rules.mk +++ b/keyboards/planck/keymaps/jweickm/rules.mk @@ -2,4 +2,6 @@ CONSOLE_ENABLE = no # Console for debug LEADER_ENABLE = yes TAP_DANCE_ENABLE = yes # enable tap dance functionality -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/kifinnsson/keymap.c b/keyboards/planck/keymaps/kifinnsson/keymap.c index 5f6ff887316..7a1e897fdd2 100644 --- a/keyboards/planck/keymaps/kifinnsson/keymap.c +++ b/keyboards/planck/keymaps/kifinnsson/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif bool is_lgui_active = false; uint16_t lgui_timer = 0; diff --git a/keyboards/planck/keymaps/kifinnsson/rules.mk b/keyboards/planck/keymaps/kifinnsson/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/kifinnsson/rules.mk +++ b/keyboards/planck/keymaps/kifinnsson/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/kuatsure/keymap.c b/keyboards/planck/keymaps/kuatsure/keymap.c index db78f1138ee..92dc15c3490 100644 --- a/keyboards/planck/keymaps/kuatsure/keymap.c +++ b/keyboards/planck/keymaps/kuatsure/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif #include "kuatsure.h" #define LAYOUT_planck_grid_wrapper(...) LAYOUT_planck_grid(__VA_ARGS__) diff --git a/keyboards/planck/keymaps/kuatsure/rules.mk b/keyboards/planck/keymaps/kuatsure/rules.mk index f9fba61d3eb..ee540a998df 100644 --- a/keyboards/planck/keymaps/kuatsure/rules.mk +++ b/keyboards/planck/keymaps/kuatsure/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif BACKLIGHT_ENABLE = no LEADER_ENABLE = yes diff --git a/keyboards/planck/keymaps/lja83/keymap.c b/keyboards/planck/keymaps/lja83/keymap.c index 33e8f93e96a..806cd5d67b4 100644 --- a/keyboards/planck/keymaps/lja83/keymap.c +++ b/keyboards/planck/keymaps/lja83/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { diff --git a/keyboards/planck/keymaps/lja83/rules.mk b/keyboards/planck/keymaps/lja83/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/lja83/rules.mk +++ b/keyboards/planck/keymaps/lja83/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/mattly/rules.mk b/keyboards/planck/keymaps/mattly/rules.mk index 7210cf34f0d..258a5ad63d3 100644 --- a/keyboards/planck/keymaps/mattly/rules.mk +++ b/keyboards/planck/keymaps/mattly/rules.mk @@ -1,2 +1,4 @@ AUDIO_ENABLE = yes -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/mgalisa/keymap.c b/keyboards/planck/keymaps/mgalisa/keymap.c index 8816bf40909..7f3de63055e 100644 --- a/keyboards/planck/keymaps/mgalisa/keymap.c +++ b/keyboards/planck/keymaps/mgalisa/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif extern keymap_config_t keymap_config; diff --git a/keyboards/planck/keymaps/mgalisa/rules.mk b/keyboards/planck/keymaps/mgalisa/rules.mk index 2afe5904385..be236b8b272 100644 --- a/keyboards/planck/keymaps/mgalisa/rules.mk +++ b/keyboards/planck/keymaps/mgalisa/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif EXTRAKEY_ENABLE = yes # RGBLIGHT_ENABLE = yes ## I bought the WS2812s... diff --git a/keyboards/planck/keymaps/mikethetiger/keymap.c b/keyboards/planck/keymaps/mikethetiger/keymap.c index c0964f1deee..4d3e2a8a35f 100644 --- a/keyboards/planck/keymaps/mikethetiger/keymap.c +++ b/keyboards/planck/keymaps/mikethetiger/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif extern keymap_config_t keymap_config; diff --git a/keyboards/planck/keymaps/mikethetiger/rules.mk b/keyboards/planck/keymaps/mikethetiger/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/mikethetiger/rules.mk +++ b/keyboards/planck/keymaps/mikethetiger/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/mjuma/keymap.c b/keyboards/planck/keymaps/mjuma/keymap.c index c5faeb43859..fdf155a417b 100644 --- a/keyboards/planck/keymaps/mjuma/keymap.c +++ b/keyboards/planck/keymaps/mjuma/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { _QWERTY, diff --git a/keyboards/planck/keymaps/mjuma/rules.mk b/keyboards/planck/keymaps/mjuma/rules.mk index 60f314e82bd..c072ab5802d 100644 --- a/keyboards/planck/keymaps/mjuma/rules.mk +++ b/keyboards/planck/keymaps/mjuma/rules.mk @@ -1,3 +1,5 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif DYNAMIC_MACRO_ENABLE = yes TAP_DANCE_ENABLE = yes diff --git a/keyboards/planck/keymaps/msiu/keymap.c b/keyboards/planck/keymaps/msiu/keymap.c index 6e5301bcfd8..f7b39153741 100644 --- a/keyboards/planck/keymaps/msiu/keymap.c +++ b/keyboards/planck/keymaps/msiu/keymap.c @@ -1,5 +1,7 @@ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif extern keymap_config_t keymap_config; diff --git a/keyboards/planck/keymaps/msiu/rules.mk b/keyboards/planck/keymaps/msiu/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/msiu/rules.mk +++ b/keyboards/planck/keymaps/msiu/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/muppetjones/keymap.c b/keyboards/planck/keymaps/muppetjones/keymap.c index a5609e57112..d6d739bdeee 100644 --- a/keyboards/planck/keymaps/muppetjones/keymap.c +++ b/keyboards/planck/keymaps/muppetjones/keymap.c @@ -19,7 +19,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif #include "muppetjones.h" #define LAYOUT_planck_wrapper(...) LAYOUT_planck_grid(__VA_ARGS__) diff --git a/keyboards/planck/keymaps/muppetjones/rules.mk b/keyboards/planck/keymaps/muppetjones/rules.mk index 1db412715d9..8610bae9f3f 100644 --- a/keyboards/planck/keymaps/muppetjones/rules.mk +++ b/keyboards/planck/keymaps/muppetjones/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif MOUSEKEY_ENABLE = yes TAP_DANCE_ENABLE = yes diff --git a/keyboards/planck/keymaps/muzfuz/keymap.c b/keyboards/planck/keymaps/muzfuz/keymap.c index 0126ffdf25d..95b94006227 100644 --- a/keyboards/planck/keymaps/muzfuz/keymap.c +++ b/keyboards/planck/keymaps/muzfuz/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif extern keymap_config_t keymap_config; diff --git a/keyboards/planck/keymaps/muzfuz/rules.mk b/keyboards/planck/keymaps/muzfuz/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/muzfuz/rules.mk +++ b/keyboards/planck/keymaps/muzfuz/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/orthodeluxe/keymap.c b/keyboards/planck/keymaps/orthodeluxe/keymap.c index 7e5ee3139b6..e8be8a1f2c6 100644 --- a/keyboards/planck/keymaps/orthodeluxe/keymap.c +++ b/keyboards/planck/keymaps/orthodeluxe/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { _BASELAYER_MACOS, diff --git a/keyboards/planck/keymaps/pascamel/keymap.c b/keyboards/planck/keymaps/pascamel/keymap.c index 779cb5f2d06..36cd3b16b34 100644 --- a/keyboards/planck/keymaps/pascamel/keymap.c +++ b/keyboards/planck/keymaps/pascamel/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif extern keymap_config_t keymap_config; diff --git a/keyboards/planck/keymaps/pascamel/rules.mk b/keyboards/planck/keymaps/pascamel/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/pascamel/rules.mk +++ b/keyboards/planck/keymaps/pascamel/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/pevecyan/rules.mk b/keyboards/planck/keymaps/pevecyan/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/pevecyan/rules.mk +++ b/keyboards/planck/keymaps/pevecyan/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/pjanx/keymap.c b/keyboards/planck/keymaps/pjanx/keymap.c index a491a34f960..648016f6b29 100644 --- a/keyboards/planck/keymaps/pjanx/keymap.c +++ b/keyboards/planck/keymaps/pjanx/keymap.c @@ -16,7 +16,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { diff --git a/keyboards/planck/keymaps/pjanx/rules.mk b/keyboards/planck/keymaps/pjanx/rules.mk index 3a551bd429b..ca6a2f77349 100644 --- a/keyboards/planck/keymaps/pjanx/rules.mk +++ b/keyboards/planck/keymaps/pjanx/rules.mk @@ -1,2 +1,4 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif MOUSEKEY_ENABLE = yes diff --git a/keyboards/planck/keymaps/ptillemans/keymap.c b/keyboards/planck/keymaps/ptillemans/keymap.c index 6d55617f7ff..d43213d14a3 100644 --- a/keyboards/planck/keymaps/ptillemans/keymap.c +++ b/keyboards/planck/keymaps/ptillemans/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif extern keymap_config_t keymap_config; diff --git a/keyboards/planck/keymaps/ptillemans/rules.mk b/keyboards/planck/keymaps/ptillemans/rules.mk index c329d16ff8a..cde2e83cc40 100644 --- a/keyboards/planck/keymaps/ptillemans/rules.mk +++ b/keyboards/planck/keymaps/ptillemans/rules.mk @@ -1,2 +1,4 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif BACKLIGHT_ENABLE = yes diff --git a/keyboards/planck/keymaps/raffle/rules.mk b/keyboards/planck/keymaps/raffle/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/raffle/rules.mk +++ b/keyboards/planck/keymaps/raffle/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/rennerom/keymap.c b/keyboards/planck/keymaps/rennerom/keymap.c index 67394b8964b..5261c203346 100644 --- a/keyboards/planck/keymaps/rennerom/keymap.c +++ b/keyboards/planck/keymaps/rennerom/keymap.c @@ -2,7 +2,9 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { diff --git a/keyboards/planck/keymaps/rennerom/rules.mk b/keyboards/planck/keymaps/rennerom/rules.mk index acf0896a321..9cd9dfa93e5 100644 --- a/keyboards/planck/keymaps/rennerom/rules.mk +++ b/keyboards/planck/keymaps/rennerom/rules.mk @@ -1 +1,3 @@ -SRC += muse.c \ No newline at end of file +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif \ No newline at end of file diff --git a/keyboards/planck/keymaps/rjhilgefort/keymap.c b/keyboards/planck/keymaps/rjhilgefort/keymap.c index 08e9809e907..2ee4eb02333 100644 --- a/keyboards/planck/keymaps/rjhilgefort/keymap.c +++ b/keyboards/planck/keymaps/rjhilgefort/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { diff --git a/keyboards/planck/keymaps/rjhilgefort/rules.mk b/keyboards/planck/keymaps/rjhilgefort/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/rjhilgefort/rules.mk +++ b/keyboards/planck/keymaps/rjhilgefort/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/rootiest/rules.mk b/keyboards/planck/keymaps/rootiest/rules.mk index ca0f90b6e9a..170791f969e 100644 --- a/keyboards/planck/keymaps/rootiest/rules.mk +++ b/keyboards/planck/keymaps/rootiest/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif ENCODER_ENABLE = yes # Enables basic encoder support OLED_ENABLE = yes OLED_DRIVER = SSD1306 # Enables support for OLED displays diff --git a/keyboards/planck/keymaps/sigul/keymap.c b/keyboards/planck/keymaps/sigul/keymap.c index 2f5044cda09..7cc74f1dbc8 100644 --- a/keyboards/planck/keymaps/sigul/keymap.c +++ b/keyboards/planck/keymaps/sigul/keymap.c @@ -12,7 +12,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif #include "keymap_italian_mac_ansi.h" #include "sigul.h" diff --git a/keyboards/planck/keymaps/sigul/rules.mk b/keyboards/planck/keymaps/sigul/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/sigul/rules.mk +++ b/keyboards/planck/keymaps/sigul/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/skug/rules.mk b/keyboards/planck/keymaps/skug/rules.mk index 9721fcd747e..2ff907abe48 100644 --- a/keyboards/planck/keymaps/skug/rules.mk +++ b/keyboards/planck/keymaps/skug/rules.mk @@ -1,3 +1,5 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif EXTRAKEY_ENABLE = no CONSOLE_ENABLE = no diff --git a/keyboards/planck/keymaps/smittey/keymap.c b/keyboards/planck/keymaps/smittey/keymap.c index d65f0ffd3ee..588cbad1b74 100644 --- a/keyboards/planck/keymaps/smittey/keymap.c +++ b/keyboards/planck/keymaps/smittey/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif extern keymap_config_t keymap_config; diff --git a/keyboards/planck/keymaps/smittey/rules.mk b/keyboards/planck/keymaps/smittey/rules.mk index acf0896a321..9cd9dfa93e5 100644 --- a/keyboards/planck/keymaps/smittey/rules.mk +++ b/keyboards/planck/keymaps/smittey/rules.mk @@ -1 +1,3 @@ -SRC += muse.c \ No newline at end of file +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif \ No newline at end of file diff --git a/keyboards/planck/keymaps/snowkuma/keymap.c b/keyboards/planck/keymaps/snowkuma/keymap.c index 0df04d87fc7..5c8a401b6d1 100644 --- a/keyboards/planck/keymaps/snowkuma/keymap.c +++ b/keyboards/planck/keymaps/snowkuma/keymap.c @@ -26,7 +26,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif #include "custom_keycodes.h" #include "my_strings.h" diff --git a/keyboards/planck/keymaps/snowkuma/rules.mk b/keyboards/planck/keymaps/snowkuma/rules.mk index e7706a252da..7cd1477861f 100644 --- a/keyboards/planck/keymaps/snowkuma/rules.mk +++ b/keyboards/planck/keymaps/snowkuma/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif AUDIO_ENABLE = yes BACKLIGHT_ENABLE = no diff --git a/keyboards/planck/keymaps/squarecut/keymap.c b/keyboards/planck/keymaps/squarecut/keymap.c index 3bfb2d499e0..93ae930ea4b 100644 --- a/keyboards/planck/keymaps/squarecut/keymap.c +++ b/keyboards/planck/keymaps/squarecut/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { diff --git a/keyboards/planck/keymaps/squarecut/rules.mk b/keyboards/planck/keymaps/squarecut/rules.mk index 87df38d49e7..fa7b39fb73e 100644 --- a/keyboards/planck/keymaps/squarecut/rules.mk +++ b/keyboards/planck/keymaps/squarecut/rules.mk @@ -1,2 +1,4 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif AUDIO_ENABLED = yes \ No newline at end of file diff --git a/keyboards/planck/keymaps/stuartfong1/keymap.c b/keyboards/planck/keymaps/stuartfong1/keymap.c index 8d770ae83b1..b3256446e35 100644 --- a/keyboards/planck/keymaps/stuartfong1/keymap.c +++ b/keyboards/planck/keymaps/stuartfong1/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { diff --git a/keyboards/planck/keymaps/stuartfong1/rules.mk b/keyboards/planck/keymaps/stuartfong1/rules.mk index d6c7c7277dc..5a6cd7c855b 100644 --- a/keyboards/planck/keymaps/stuartfong1/rules.mk +++ b/keyboards/planck/keymaps/stuartfong1/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif AUTO_SHIFT_ENABLE = yes DYNAMIC_MACRO_ENABLE = yes STENO_ENABLE = yes diff --git a/keyboards/planck/keymaps/tk/keymap.c b/keyboards/planck/keymaps/tk/keymap.c index cb512b73a38..9601a45f658 100644 --- a/keyboards/planck/keymaps/tk/keymap.c +++ b/keyboards/planck/keymaps/tk/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif /* diff --git a/keyboards/planck/keymaps/tk/rules.mk b/keyboards/planck/keymaps/tk/rules.mk index 3e001cdf960..ac90f082174 100644 --- a/keyboards/planck/keymaps/tk/rules.mk +++ b/keyboards/planck/keymaps/tk/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif COMMAND_ENABLE = no diff --git a/keyboards/planck/keymaps/tom/keymap.c b/keyboards/planck/keymaps/tom/keymap.c index 1190502e2c9..4b265d1cf4a 100644 --- a/keyboards/planck/keymaps/tom/keymap.c +++ b/keyboards/planck/keymaps/tom/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif extern keymap_config_t keymap_config; diff --git a/keyboards/planck/keymaps/tom/rules.mk b/keyboards/planck/keymaps/tom/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/tom/rules.mk +++ b/keyboards/planck/keymaps/tom/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/tomkonidas/keymap.c b/keyboards/planck/keymaps/tomkonidas/keymap.c index 9f9464280f4..b3f6bb90cad 100644 --- a/keyboards/planck/keymaps/tomkonidas/keymap.c +++ b/keyboards/planck/keymaps/tomkonidas/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { diff --git a/keyboards/planck/keymaps/tomkonidas/rules.mk b/keyboards/planck/keymaps/tomkonidas/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/planck/keymaps/tomkonidas/rules.mk +++ b/keyboards/planck/keymaps/tomkonidas/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/ttys0/keymap.c b/keyboards/planck/keymaps/ttys0/keymap.c index c98cda20be1..7d7790e3fc3 100644 --- a/keyboards/planck/keymaps/ttys0/keymap.c +++ b/keyboards/planck/keymaps/ttys0/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif #define a KC_A #define b KC_B diff --git a/keyboards/planck/keymaps/ttys0/rules.mk b/keyboards/planck/keymaps/ttys0/rules.mk index faa09801bec..6e987f835bb 100644 --- a/keyboards/planck/keymaps/ttys0/rules.mk +++ b/keyboards/planck/keymaps/ttys0/rules.mk @@ -1,4 +1,6 @@ # Make some noise -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/keymaps/tylerwince/keymap.c b/keyboards/planck/keymaps/tylerwince/keymap.c index 5477dab6a18..aae1a53aa1b 100644 --- a/keyboards/planck/keymaps/tylerwince/keymap.c +++ b/keyboards/planck/keymaps/tylerwince/keymap.c @@ -1,5 +1,7 @@ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_keycodes { RGB_SLD = SAFE_RANGE, diff --git a/keyboards/planck/keymaps/tylerwince/rules.mk b/keyboards/planck/keymaps/tylerwince/rules.mk index 2c1585883fb..dc1e1932202 100644 --- a/keyboards/planck/keymaps/tylerwince/rules.mk +++ b/keyboards/planck/keymaps/tylerwince/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif # Set any rules.mk overrides for your specific keymap here. # See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file LTO_ENABLE = yes diff --git a/keyboards/planck/keymaps/unagi/keymap.c b/keyboards/planck/keymaps/unagi/keymap.c index 6227a73e4f0..7707c10e026 100644 --- a/keyboards/planck/keymaps/unagi/keymap.c +++ b/keyboards/planck/keymaps/unagi/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif extern keymap_config_t keymap_config; diff --git a/keyboards/planck/keymaps/unagi/rules.mk b/keyboards/planck/keymaps/unagi/rules.mk index 5433b3b6825..6055248f740 100644 --- a/keyboards/planck/keymaps/unagi/rules.mk +++ b/keyboards/planck/keymaps/unagi/rules.mk @@ -1,2 +1,4 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif TAP_DANCE_ENABLE = yes diff --git a/keyboards/planck/keymaps/winternebs/rules.mk b/keyboards/planck/keymaps/winternebs/rules.mk index dcf16bef399..10751dc952e 100755 --- a/keyboards/planck/keymaps/winternebs/rules.mk +++ b/keyboards/planck/keymaps/winternebs/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/planck/rev7/matrix.c b/keyboards/planck/rev7/matrix.c index df1e627e831..c89c399a40d 100644 --- a/keyboards/planck/rev7/matrix.c +++ b/keyboards/planck/rev7/matrix.c @@ -19,6 +19,7 @@ #include "hal_pal.h" #include "hal_pal_lld.h" #include "quantum.h" +#include // STM32-specific watchdog config calculations // timeout = 31.25us * PR * (RL + 1) diff --git a/keyboards/preonic/keymaps/AlexDaigre/keymap.c b/keyboards/preonic/keymaps/AlexDaigre/keymap.c index 744ce94a81f..cac86b747b7 100644 --- a/keyboards/preonic/keymaps/AlexDaigre/keymap.c +++ b/keyboards/preonic/keymaps/AlexDaigre/keymap.c @@ -16,7 +16,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum preonic_layers { _QWERTY, diff --git a/keyboards/preonic/keymaps/AlexDaigre/rules.mk b/keyboards/preonic/keymaps/AlexDaigre/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/preonic/keymaps/AlexDaigre/rules.mk +++ b/keyboards/preonic/keymaps/AlexDaigre/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/preonic/keymaps/arkag/rules.mk b/keyboards/preonic/keymaps/arkag/rules.mk index 5b87801fca6..a84f23b1c48 100644 --- a/keyboards/preonic/keymaps/arkag/rules.mk +++ b/keyboards/preonic/keymaps/arkag/rules.mk @@ -14,4 +14,6 @@ UNICODE_ENABLE = yes LEADER_ENABLE = yes # from default -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/preonic/keymaps/bghull/rules.mk b/keyboards/preonic/keymaps/bghull/rules.mk index 9711c485d7a..c03da2e496d 100644 --- a/keyboards/preonic/keymaps/bghull/rules.mk +++ b/keyboards/preonic/keymaps/bghull/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif AUTO_SHIFT_ENABLE = yes MOUSEKEY_ENABLE = yes STENO_ENABLE = yes diff --git a/keyboards/preonic/keymaps/brauner/keymap.c b/keyboards/preonic/keymaps/brauner/keymap.c index 398abfa741b..64569ca29b5 100644 --- a/keyboards/preonic/keymaps/brauner/keymap.c +++ b/keyboards/preonic/keymaps/brauner/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum preonic_layers { _QWERTY, diff --git a/keyboards/preonic/keymaps/brauner/rules.mk b/keyboards/preonic/keymaps/brauner/rules.mk index a8fd3491386..73ac653704f 100644 --- a/keyboards/preonic/keymaps/brauner/rules.mk +++ b/keyboards/preonic/keymaps/brauner/rules.mk @@ -4,4 +4,6 @@ RGBLIGHT_ENABLE = no BACKLIGHT_ENABLE = no KEY_OVERRIDE_ENABLE = yes COMBO_ENABLE = yes -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/preonic/keymaps/cranium/keymap.c b/keyboards/preonic/keymaps/cranium/keymap.c index 7b81774027d..519c707684f 100644 --- a/keyboards/preonic/keymaps/cranium/keymap.c +++ b/keyboards/preonic/keymaps/cranium/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum preonic_layers { _QWERTY, diff --git a/keyboards/preonic/keymaps/cranium/rules.mk b/keyboards/preonic/keymaps/cranium/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/preonic/keymaps/cranium/rules.mk +++ b/keyboards/preonic/keymaps/cranium/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/preonic/keymaps/default/keymap.c b/keyboards/preonic/keymaps/default/keymap.c index 12bec41a85a..9ec40b49ba0 100644 --- a/keyboards/preonic/keymaps/default/keymap.c +++ b/keyboards/preonic/keymaps/default/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum preonic_layers { _QWERTY, diff --git a/keyboards/preonic/keymaps/default/rules.mk b/keyboards/preonic/keymaps/default/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/preonic/keymaps/default/rules.mk +++ b/keyboards/preonic/keymaps/default/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/preonic/keymaps/drasbeck/keymap.c b/keyboards/preonic/keymaps/drasbeck/keymap.c index f6844beabb3..53fee5a5d77 100644 --- a/keyboards/preonic/keymaps/drasbeck/keymap.c +++ b/keyboards/preonic/keymaps/drasbeck/keymap.c @@ -10,7 +10,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum preonic_layers { _QWERTY, diff --git a/keyboards/preonic/keymaps/drasbeck/rules.mk b/keyboards/preonic/keymaps/drasbeck/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/preonic/keymaps/drasbeck/rules.mk +++ b/keyboards/preonic/keymaps/drasbeck/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/preonic/keymaps/egstad/rules.mk b/keyboards/preonic/keymaps/egstad/rules.mk index 5348bfdf946..04527023abe 100644 --- a/keyboards/preonic/keymaps/egstad/rules.mk +++ b/keyboards/preonic/keymaps/egstad/rules.mk @@ -1,3 +1,5 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif TAP_DANCE_ENABLE = yes AUTO_SHIFT_ENABLE = yes diff --git a/keyboards/preonic/keymaps/elisiano/keymap.c b/keyboards/preonic/keymaps/elisiano/keymap.c index 5728894c431..fc408638a35 100644 --- a/keyboards/preonic/keymaps/elisiano/keymap.c +++ b/keyboards/preonic/keymaps/elisiano/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum preonic_layers { _QWERTY, diff --git a/keyboards/preonic/keymaps/elisiano/rules.mk b/keyboards/preonic/keymaps/elisiano/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/preonic/keymaps/elisiano/rules.mk +++ b/keyboards/preonic/keymaps/elisiano/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/preonic/keymaps/era1112/rules.mk b/keyboards/preonic/keymaps/era1112/rules.mk index 4e83382dad4..f857faa9440 100644 --- a/keyboards/preonic/keymaps/era1112/rules.mk +++ b/keyboards/preonic/keymaps/era1112/rules.mk @@ -4,7 +4,9 @@ # DEFAULT STATEMENTS # ================== -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif # ADDED STATEMENTS diff --git a/keyboards/preonic/keymaps/fsck/keymap.c b/keyboards/preonic/keymaps/fsck/keymap.c index c05e552786e..953d7995426 100644 --- a/keyboards/preonic/keymaps/fsck/keymap.c +++ b/keyboards/preonic/keymaps/fsck/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum preonic_layers { _QWERTY, diff --git a/keyboards/preonic/keymaps/fsck/rules.mk b/keyboards/preonic/keymaps/fsck/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/preonic/keymaps/fsck/rules.mk +++ b/keyboards/preonic/keymaps/fsck/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/preonic/keymaps/guillermoap/keymap.c b/keyboards/preonic/keymaps/guillermoap/keymap.c index 066c986c150..78016f28756 100644 --- a/keyboards/preonic/keymaps/guillermoap/keymap.c +++ b/keyboards/preonic/keymaps/guillermoap/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum preonic_layers { _BASE, diff --git a/keyboards/preonic/keymaps/guillermoap/rules.mk b/keyboards/preonic/keymaps/guillermoap/rules.mk index da6657c8bdc..f1ce41cdcf5 100644 --- a/keyboards/preonic/keymaps/guillermoap/rules.mk +++ b/keyboards/preonic/keymaps/guillermoap/rules.mk @@ -1,3 +1,5 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif ENCODER_ENABLE = yes ENCODER_MAP_ENABLE = yes diff --git a/keyboards/preonic/keymaps/keelhauler/keymap.c b/keyboards/preonic/keymaps/keelhauler/keymap.c index 3a3782353c4..44bb2ae406a 100644 --- a/keyboards/preonic/keymaps/keelhauler/keymap.c +++ b/keyboards/preonic/keymaps/keelhauler/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif // Tap and hold mods // Enter into right shift diff --git a/keyboards/preonic/keymaps/keelhauler/rules.mk b/keyboards/preonic/keymaps/keelhauler/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/preonic/keymaps/keelhauler/rules.mk +++ b/keyboards/preonic/keymaps/keelhauler/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/preonic/keymaps/kjwon15/keymap.c b/keyboards/preonic/keymaps/kjwon15/keymap.c index 94f76b00b44..a34cc314095 100644 --- a/keyboards/preonic/keymaps/kjwon15/keymap.c +++ b/keyboards/preonic/keymaps/kjwon15/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum preonic_layers { _QWERTY, diff --git a/keyboards/preonic/keymaps/kjwon15/rules.mk b/keyboards/preonic/keymaps/kjwon15/rules.mk index 5ffe1ff3285..ff5c31ec577 100644 --- a/keyboards/preonic/keymaps/kjwon15/rules.mk +++ b/keyboards/preonic/keymaps/kjwon15/rules.mk @@ -1,2 +1,4 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif KEY_LOCK_ENABLE = yes diff --git a/keyboards/preonic/keymaps/laurentlaurent/rules.mk b/keyboards/preonic/keymaps/laurentlaurent/rules.mk index 3a551bd429b..ca6a2f77349 100644 --- a/keyboards/preonic/keymaps/laurentlaurent/rules.mk +++ b/keyboards/preonic/keymaps/laurentlaurent/rules.mk @@ -1,2 +1,4 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif MOUSEKEY_ENABLE = yes diff --git a/keyboards/preonic/keymaps/mechmaster48/keymap.c b/keyboards/preonic/keymaps/mechmaster48/keymap.c index 7aa88267fde..17265f6c204 100644 --- a/keyboards/preonic/keymaps/mechmaster48/keymap.c +++ b/keyboards/preonic/keymaps/mechmaster48/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum preonic_layers { _QWERTY, diff --git a/keyboards/preonic/keymaps/mechmaster48/rules.mk b/keyboards/preonic/keymaps/mechmaster48/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/preonic/keymaps/mechmaster48/rules.mk +++ b/keyboards/preonic/keymaps/mechmaster48/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/preonic/keymaps/mguterl/keymap.c b/keyboards/preonic/keymaps/mguterl/keymap.c index ecf65b0497a..85de930e5c0 100644 --- a/keyboards/preonic/keymaps/mguterl/keymap.c +++ b/keyboards/preonic/keymaps/mguterl/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif #include "mguterl.h" const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { diff --git a/keyboards/preonic/keymaps/mguterl/rules.mk b/keyboards/preonic/keymaps/mguterl/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/preonic/keymaps/mguterl/rules.mk +++ b/keyboards/preonic/keymaps/mguterl/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/preonic/keymaps/mikethetiger/keymap.c b/keyboards/preonic/keymaps/mikethetiger/keymap.c index f21d46ac9a2..56cd751b6db 100644 --- a/keyboards/preonic/keymaps/mikethetiger/keymap.c +++ b/keyboards/preonic/keymaps/mikethetiger/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum preonic_layers { _QWERTY, diff --git a/keyboards/preonic/keymaps/mikethetiger/rules.mk b/keyboards/preonic/keymaps/mikethetiger/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/preonic/keymaps/mikethetiger/rules.mk +++ b/keyboards/preonic/keymaps/mikethetiger/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/preonic/keymaps/muzfuz/keymap.c b/keyboards/preonic/keymaps/muzfuz/keymap.c index f1befddb833..22ca29e0471 100644 --- a/keyboards/preonic/keymaps/muzfuz/keymap.c +++ b/keyboards/preonic/keymaps/muzfuz/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum preonic_layers { _QWERTY, diff --git a/keyboards/preonic/keymaps/muzfuz/rules.mk b/keyboards/preonic/keymaps/muzfuz/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/preonic/keymaps/muzfuz/rules.mk +++ b/keyboards/preonic/keymaps/muzfuz/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/preonic/keymaps/mverteuil/keymap.c b/keyboards/preonic/keymaps/mverteuil/keymap.c index e81f38362aa..879bfd652b6 100644 --- a/keyboards/preonic/keymaps/mverteuil/keymap.c +++ b/keyboards/preonic/keymaps/mverteuil/keymap.c @@ -14,7 +14,9 @@ * along with this program. If not, see . */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif #include "mverteuil.h" /* TapDance Aliases */ diff --git a/keyboards/preonic/keymaps/mverteuil/rules.mk b/keyboards/preonic/keymaps/mverteuil/rules.mk index a29a3cad798..9838a62a27a 100644 --- a/keyboards/preonic/keymaps/mverteuil/rules.mk +++ b/keyboards/preonic/keymaps/mverteuil/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif AUDIO_ENABLE = yes MIDI_ENABLE = yes diff --git a/keyboards/preonic/keymaps/mverteuil_2x2u/keymap.c b/keyboards/preonic/keymaps/mverteuil_2x2u/keymap.c index cab5cdcb05d..db8995ddc59 100644 --- a/keyboards/preonic/keymaps/mverteuil_2x2u/keymap.c +++ b/keyboards/preonic/keymaps/mverteuil_2x2u/keymap.c @@ -14,7 +14,9 @@ * along with this program. If not, see . */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif #include "mverteuil.h" /* Layer Aliases */ diff --git a/keyboards/preonic/keymaps/mverteuil_2x2u/rules.mk b/keyboards/preonic/keymaps/mverteuil_2x2u/rules.mk index 9e55d0aa67d..f0113bf43a3 100644 --- a/keyboards/preonic/keymaps/mverteuil_2x2u/rules.mk +++ b/keyboards/preonic/keymaps/mverteuil_2x2u/rules.mk @@ -1,5 +1,7 @@ USER_NAME := mverteuil -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif AUDIO_ENABLE = yes MIDI_ENABLE = yes diff --git a/keyboards/preonic/keymaps/pcurt854/keymap.c b/keyboards/preonic/keymaps/pcurt854/keymap.c index af88b10f3b3..dfc4452e518 100644 --- a/keyboards/preonic/keymaps/pcurt854/keymap.c +++ b/keyboards/preonic/keymaps/pcurt854/keymap.c @@ -16,7 +16,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum preonic_layers { _QWERTY, // 0 diff --git a/keyboards/preonic/keymaps/pezhore/keymap.c b/keyboards/preonic/keymaps/pezhore/keymap.c index ec7cd731728..cc6cb143e91 100644 --- a/keyboards/preonic/keymaps/pezhore/keymap.c +++ b/keyboards/preonic/keymaps/pezhore/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum preonic_layers { _QWERTY, diff --git a/keyboards/preonic/keymaps/pezhore/rules.mk b/keyboards/preonic/keymaps/pezhore/rules.mk index 23198218b43..f849d1a4730 100644 --- a/keyboards/preonic/keymaps/pezhore/rules.mk +++ b/keyboards/preonic/keymaps/pezhore/rules.mk @@ -1,3 +1,5 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif #UNICODEMAP_ENABLE = yes UNICODE_ENABLE = yes \ No newline at end of file diff --git a/keyboards/preonic/keymaps/pvillano/keymap.c b/keyboards/preonic/keymaps/pvillano/keymap.c index 01cec1f80bd..072117affde 100644 --- a/keyboards/preonic/keymaps/pvillano/keymap.c +++ b/keyboards/preonic/keymaps/pvillano/keymap.c @@ -3,7 +3,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum preonic_layers { _QWERTY, diff --git a/keyboards/preonic/keymaps/pvillano/rules.mk b/keyboards/preonic/keymaps/pvillano/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/preonic/keymaps/pvillano/rules.mk +++ b/keyboards/preonic/keymaps/pvillano/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/preonic/keymaps/rmeli/keymap.c b/keyboards/preonic/keymaps/rmeli/keymap.c index 0a16dc8bf7d..3b278b84086 100644 --- a/keyboards/preonic/keymaps/rmeli/keymap.c +++ b/keyboards/preonic/keymaps/rmeli/keymap.c @@ -16,7 +16,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif #include "rmeli.h" diff --git a/keyboards/preonic/keymaps/rmeli/rules.mk b/keyboards/preonic/keymaps/rmeli/rules.mk index 3903cc12281..c1cd8bc1f83 100644 --- a/keyboards/preonic/keymaps/rmeli/rules.mk +++ b/keyboards/preonic/keymaps/rmeli/rules.mk @@ -9,4 +9,6 @@ UNICODEMAP_ENABLE = yes RGBLIGHT_ENABLE = no MOUSEKEY_ENABLE = no -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/preonic/keymaps/senseored/keymap.c b/keyboards/preonic/keymaps/senseored/keymap.c index 587e76398d9..b0571129bba 100644 --- a/keyboards/preonic/keymaps/senseored/keymap.c +++ b/keyboards/preonic/keymaps/senseored/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum preonic_layers { _QWERTY, diff --git a/keyboards/preonic/keymaps/senseored/rules.mk b/keyboards/preonic/keymaps/senseored/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/preonic/keymaps/senseored/rules.mk +++ b/keyboards/preonic/keymaps/senseored/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/preonic/keymaps/shwilliam/rules.mk b/keyboards/preonic/keymaps/shwilliam/rules.mk index dcf16bef399..10751dc952e 100644 --- a/keyboards/preonic/keymaps/shwilliam/rules.mk +++ b/keyboards/preonic/keymaps/shwilliam/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/preonic/keymaps/snowskeleton/keymap.c b/keyboards/preonic/keymaps/snowskeleton/keymap.c index 8af85fde90f..7a159f5762d 100644 --- a/keyboards/preonic/keymaps/snowskeleton/keymap.c +++ b/keyboards/preonic/keymaps/snowskeleton/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum preonic_layers { _QWERTY_MACOS, diff --git a/keyboards/preonic/keymaps/snowskeleton/rules.mk b/keyboards/preonic/keymaps/snowskeleton/rules.mk index da6657c8bdc..f1ce41cdcf5 100644 --- a/keyboards/preonic/keymaps/snowskeleton/rules.mk +++ b/keyboards/preonic/keymaps/snowskeleton/rules.mk @@ -1,3 +1,5 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif ENCODER_ENABLE = yes ENCODER_MAP_ENABLE = yes diff --git a/keyboards/preonic/keymaps/ttys0/keymap.c b/keyboards/preonic/keymaps/ttys0/keymap.c index fbcf3ea7b19..646110e502c 100644 --- a/keyboards/preonic/keymaps/ttys0/keymap.c +++ b/keyboards/preonic/keymaps/ttys0/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif #define a KC_A #define b KC_B diff --git a/keyboards/preonic/keymaps/ttys0/rules.mk b/keyboards/preonic/keymaps/ttys0/rules.mk index 22df9b39f32..338d4371513 100644 --- a/keyboards/preonic/keymaps/ttys0/rules.mk +++ b/keyboards/preonic/keymaps/ttys0/rules.mk @@ -1,2 +1,4 @@ # Make some noise -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif diff --git a/keyboards/preonic/keymaps/via/keymap.c b/keyboards/preonic/keymaps/via/keymap.c index 2d8a3c763f3..8f5bf4e00fd 100644 --- a/keyboards/preonic/keymaps/via/keymap.c +++ b/keyboards/preonic/keymaps/via/keymap.c @@ -16,7 +16,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum preonic_layers { _QWERTY, diff --git a/keyboards/preonic/keymaps/via/rules.mk b/keyboards/preonic/keymaps/via/rules.mk index ed6f2029b76..3ebe0c05fa9 100644 --- a/keyboards/preonic/keymaps/via/rules.mk +++ b/keyboards/preonic/keymaps/via/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif VIA_ENABLE = yes LTO_ENABLE = yes diff --git a/keyboards/preonic/keymaps/xulkal/rules.mk b/keyboards/preonic/keymaps/xulkal/rules.mk index f7e76252cd0..a947fc6e419 100644 --- a/keyboards/preonic/keymaps/xulkal/rules.mk +++ b/keyboards/preonic/keymaps/xulkal/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif ENCODER_ENABLE = no diff --git a/layouts/community/ortho_4x12/jjerrell/rules.mk b/layouts/community/ortho_4x12/jjerrell/rules.mk index 9b1b8e89152..f6acbcb2d3c 100644 --- a/layouts/community/ortho_4x12/jjerrell/rules.mk +++ b/layouts/community/ortho_4x12/jjerrell/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite MOUSEKEY_ENABLE = no diff --git a/layouts/community/ortho_4x12/juno/keymap.c b/layouts/community/ortho_4x12/juno/keymap.c index 1e29306031d..2f91397a133 100644 --- a/layouts/community/ortho_4x12/juno/keymap.c +++ b/layouts/community/ortho_4x12/juno/keymap.c @@ -1,5 +1,7 @@ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { diff --git a/layouts/community/ortho_4x12/juno/rules.mk b/layouts/community/ortho_4x12/juno/rules.mk index cf0942b7187..50d4d39957c 100644 --- a/layouts/community/ortho_4x12/juno/rules.mk +++ b/layouts/community/ortho_4x12/juno/rules.mk @@ -1,4 +1,6 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif ifeq ($(strip $(KEYBOARD)), planck/rev6) BACKLIGHT_ENABLE = no diff --git a/layouts/community/ortho_4x12/mguterl/keymap.c b/layouts/community/ortho_4x12/mguterl/keymap.c index 4f060e5550e..106b094931c 100644 --- a/layouts/community/ortho_4x12/mguterl/keymap.c +++ b/layouts/community/ortho_4x12/mguterl/keymap.c @@ -15,7 +15,9 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif #include "mguterl.h" extern keymap_config_t keymap_config; diff --git a/layouts/community/ortho_4x12/mguterl/rules.mk b/layouts/community/ortho_4x12/mguterl/rules.mk index dcf16bef399..10751dc952e 100644 --- a/layouts/community/ortho_4x12/mguterl/rules.mk +++ b/layouts/community/ortho_4x12/mguterl/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif