@ -20,7 +20,10 @@ endif
override SILENT : = false
override SILENT : = false
i f n d e f S U B _ I S _ S I L E N T
i f n d e f S U B _ I S _ S I L E N T
i f n d e f S K I P _ G I T
QMK_VERSION := $( shell git describe --abbrev= 0 --tags 2>/dev/null)
QMK_VERSION := $( shell git describe --abbrev= 0 --tags 2>/dev/null)
e n d i f
i f n e q ( $( QMK_VERSION ) , )
i f n e q ( $( QMK_VERSION ) , )
$( info QMK Firmware $ ( QMK_VERSION ) )
$( info QMK Firmware $ ( QMK_VERSION ) )
e n d i f
e n d i f
@ -94,6 +97,7 @@ $(eval $(call NEXT_PATH_ELEMENT))
# endif
# endif
d e f i n e G E T _ K E Y B O A R D S
d e f i n e G E T _ K E Y B O A R D S
i f n d e f A L T _ G E T _ K E Y B O A R D S
All_RULES_MK := $$ ( patsubst $( ROOT_DIR) /keyboards/%/rules.mk,%,$$ ( wildcard $( ROOT_DIR) /keyboards/*/rules.mk) )
All_RULES_MK := $$ ( patsubst $( ROOT_DIR) /keyboards/%/rules.mk,%,$$ ( wildcard $( ROOT_DIR) /keyboards/*/rules.mk) )
All_RULES_MK += $$ ( patsubst $( ROOT_DIR) /keyboards/%/rules.mk,%,$$ ( wildcard $( ROOT_DIR) /keyboards/*/*/rules.mk) )
All_RULES_MK += $$ ( patsubst $( ROOT_DIR) /keyboards/%/rules.mk,%,$$ ( wildcard $( ROOT_DIR) /keyboards/*/*/rules.mk) )
All_RULES_MK += $$ ( patsubst $( ROOT_DIR) /keyboards/%/rules.mk,%,$$ ( wildcard $( ROOT_DIR) /keyboards/*/*/*/rules.mk) )
All_RULES_MK += $$ ( patsubst $( ROOT_DIR) /keyboards/%/rules.mk,%,$$ ( wildcard $( ROOT_DIR) /keyboards/*/*/*/rules.mk) )
@ -105,6 +109,9 @@ define GET_KEYBOARDS
KEYMAPS_MK += $$ ( patsubst $( ROOT_DIR) /keyboards/%/rules.mk,%,$$ ( wildcard $( ROOT_DIR) /keyboards/*/*/*/*/keymaps/*/rules.mk) )
KEYMAPS_MK += $$ ( patsubst $( ROOT_DIR) /keyboards/%/rules.mk,%,$$ ( wildcard $( ROOT_DIR) /keyboards/*/*/*/*/keymaps/*/rules.mk) )
KEYBOARDS := $$ ( sort $$ ( filter-out $$ ( KEYMAPS_MK) , $$ ( All_RULES_MK) ) )
KEYBOARDS := $$ ( sort $$ ( filter-out $$ ( KEYMAPS_MK) , $$ ( All_RULES_MK) ) )
e l s e
KEYBOARDS := $( shell find keyboards/ -type f -iname "rules.mk" | grep -v keymaps | sed 's!keyboards/\(.*\)/rules.mk!\1!' | sort | uniq)
e n d i f
e n d e f
e n d e f
$( eval $ ( call GET_KEYBOARDS ) )
$( eval $ ( call GET_KEYBOARDS ) )