diff --git a/keyboards/planck/keymaps/abishalom/keymap.c b/keyboards/planck/keymaps/abishalom/keymap.c index 87af1d75e33d..e06c33f67d2b 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 dcf16bef3994..10751dc952e4 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 ce1acd437b5b..80efc45839af 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 bbf6cc119e32..57754bc443fc 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 469769525216..57a9adf1cb91 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 5caaf1922ed7..512e150c4fa7 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 6fd8c3980475..3c2735e45c62 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 dcf16bef3994..10751dc952e4 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 664ed740781c..10eb5322cd21 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 ea7e516e3403..dd13fc9bcd28 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 6e4985a8b171..aa16faa1106a 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 376ceeb288ed..b7dd3dffc3fc 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 e259574a4e44..f306dcfb0f54 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 413888902515..477283e1fb4e 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 d03e978b827d..d2bb231275fe 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 dcf16bef3994..10751dc952e4 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 57c22bb95311..6c91f5bf5252 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 ff57d28cf82c..7dbd748ae730 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 7216951bf964..6877c440064f 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 f1d66d2a913f..48781ef00030 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 dcf16bef3994..10751dc952e4 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 ccb1db659a88..d04e0129f893 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 07a64e2fb60e..d06afafe3e65 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 1569ed5e985b..ac7550836543 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 dcf16bef3994..10751dc952e4 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 c9d9c9f6ad35..0e6c199f2330 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 87df38d49e74..fa7b39fb73e3 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 c62e93671a99..2dbd86ae1b2a 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 67528de9c834..d695d8d5863c 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 3af4642af562..6594b7057d05 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 dcf16bef3994..10751dc952e4 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 bd0c2cadecf3..12861c854a64 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 896115f718fb..fdb9da1267e9 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 9ff91f84c19a..3c1c7c6d1d38 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 afd8d7a8c6cf..58792b373862 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 06f43b74108d..dee832b8fb15 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 dcf16bef3994..10751dc952e4 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 f17e67c234d7..339090e32423 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 443164aba44b..e4aa346c1043 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 dcf16bef3994..10751dc952e4 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 02766bb125e7..0e3d5bb01ee7 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 dcf16bef3994..10751dc952e4 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 b206b8511e14..17d99885b9db 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 067ac4768c9d..f4199390739a 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 5f6ff8873169..7a1e897fdd26 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 dcf16bef3994..10751dc952e4 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 db78f1138ee1..92dc15c3490b 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 f9fba61d3ebf..ee540a998dfc 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 33e8f93e96ae..806cd5d67b4a 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 dcf16bef3994..10751dc952e4 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 7210cf34f0d0..258a5ad63d3e 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 8816bf40909e..7f3de63055ec 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 2afe59043855..be236b8b2727 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 c0964f1deee6..4d3e2a8a35fa 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 dcf16bef3994..10751dc952e4 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 c5faeb438595..fdf155a417b4 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 60f314e82bd2..c072ab5802de 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 6e5301bcfd8e..f7b391537417 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 dcf16bef3994..10751dc952e4 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 a5609e571120..d6d739bdeee3 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 1db412715d96..8610bae9f3f1 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 0126ffdf25d3..95b94006227c 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 dcf16bef3994..10751dc952e4 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 7e5ee3139b6f..e8be8a1f2c67 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 779cb5f2d06e..36cd3b16b349 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 dcf16bef3994..10751dc952e4 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 dcf16bef3994..10751dc952e4 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 a491a34f9603..648016f6b299 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 3a551bd429bc..ca6a2f773498 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 6d55617f7ff3..d43213d14a3b 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 c329d16ff8a9..cde2e83cc404 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 dcf16bef3994..10751dc952e4 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 67394b8964bc..5261c203346f 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 acf0896a321b..9cd9dfa93e5b 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 08e9809e907f..2ee4eb023330 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 dcf16bef3994..10751dc952e4 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 ca0f90b6e9a8..170791f969eb 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 2f5044cda093..7cc74f1dbc80 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 dcf16bef3994..10751dc952e4 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 9721fcd747e2..2ff907abe48f 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 d65f0ffd3ee3..588cbad1b742 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 acf0896a321b..9cd9dfa93e5b 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 0df04d87fc73..5c8a401b6d1e 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 e7706a252dab..7cd1477861f5 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 3bfb2d499e01..93ae930ea4b9 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 87df38d49e74..fa7b39fb73e3 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 8d770ae83b16..b3256446e353 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 d6c7c7277dca..5a6cd7c855b2 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 cb512b73a386..9601a45f658a 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 3e001cdf9600..ac90f082174f 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 1190502e2c98..4b265d1cf4a2 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 dcf16bef3994..10751dc952e4 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 9f9464280f44..b3f6bb90cad9 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 dcf16bef3994..10751dc952e4 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 c98cda20be1c..7d7790e3fc37 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 faa09801bec7..6e987f835bba 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 5477dab6a18a..aae1a53aa1bd 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 2c1585883fbe..dc1e19322022 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 6227a73e4f0e..7707c10e026c 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 5433b3b68252..6055248f740f 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 dcf16bef3994..10751dc952e4 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 df1e627e8314..c89c399a40d2 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 744ce94a81f7..cac86b747b74 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 dcf16bef3994..10751dc952e4 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 5b87801fca60..a84f23b1c482 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 9711c485d7af..c03da2e496dc 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 398abfa741bd..64569ca29b56 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 a8fd3491386a..73ac653704fa 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 7b81774027d3..519c707684f8 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 dcf16bef3994..10751dc952e4 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 12bec41a85a2..9ec40b49ba00 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 dcf16bef3994..10751dc952e4 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 f6844beabb3e..53fee5a5d773 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 dcf16bef3994..10751dc952e4 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 5348bfdf9464..04527023abe5 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 5728894c431e..fc408638a356 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 dcf16bef3994..10751dc952e4 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 4e83382dad43..f857faa94406 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 c05e552786e0..953d79954266 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 dcf16bef3994..10751dc952e4 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 066c986c1500..78016f287563 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 da6657c8bdc9..f1ce41cdcf5c 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 3a3782353c4c..44bb2ae406a0 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 dcf16bef3994..10751dc952e4 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 94f76b00b448..a34cc314095b 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 5ffe1ff3285c..ff5c31ec577e 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 3a551bd429bc..ca6a2f773498 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 7aa88267fdec..17265f6c2045 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 dcf16bef3994..10751dc952e4 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 ecf65b0497af..85de930e5c07 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 dcf16bef3994..10751dc952e4 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 f21d46ac9a2e..56cd751b6db7 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 dcf16bef3994..10751dc952e4 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 f1befddb833b..22ca29e04719 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 dcf16bef3994..10751dc952e4 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 e81f38362aa6..879bfd652b67 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 a29a3cad7981..9838a62a27a2 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 cab5cdcb05dc..db8995ddc590 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 9e55d0aa67d5..f0113bf43a39 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 af88b10f3b3e..dfc4452e5183 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 ec7cd731728f..cc6cb143e91e 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 23198218b43f..f849d1a47306 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 01cec1f80bd1..072117affde5 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 dcf16bef3994..10751dc952e4 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 0a16dc8bf7d6..3b278b840864 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 3903cc122811..c1cd8bc1f83b 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 587e76398d91..b0571129bba2 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 dcf16bef3994..10751dc952e4 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 dcf16bef3994..10751dc952e4 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 8af85fde90f4..7a159f5762d7 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 da6657c8bdc9..f1ce41cdcf5c 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 fbcf3ea7b19c..646110e502c3 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 22df9b39f32b..338d43715139 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 2d8a3c763f32..8f5bf4e00fd0 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 ed6f2029b76f..3ebe0c05fa97 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 f7e76252cd0a..a947fc6e419f 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 9b1b8e891520..f6acbcb2d3c4 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 1e29306031d5..2f91397a133e 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 cf0942b7187f..50d4d39957cb 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 4f060e5550e7..106b094931cf 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 dcf16bef3994..10751dc952e4 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