@ -307,11 +307,6 @@ define PARSE_KEYBOARD
KEYBOARD_FOLDER_PATH_3 := $$ ( patsubst %/,%,$$ ( dir $$ ( KEYBOARD_FOLDER_PATH_2) ) )
KEYBOARD_FOLDER_PATH_4 := $$ ( patsubst %/,%,$$ ( dir $$ ( KEYBOARD_FOLDER_PATH_3) ) )
KEYBOARD_FOLDER_PATH_5 := $$ ( patsubst %/,%,$$ ( dir $$ ( KEYBOARD_FOLDER_PATH_4) ) )
KEYBOARD_FOLDER_1 := $$ ( notdir $$ ( KEYBOARD_FOLDER_PATH_1) )
KEYBOARD_FOLDER_2 := $$ ( notdir $$ ( KEYBOARD_FOLDER_PATH_2) )
KEYBOARD_FOLDER_3 := $$ ( notdir $$ ( KEYBOARD_FOLDER_PATH_3) )
KEYBOARD_FOLDER_4 := $$ ( notdir $$ ( KEYBOARD_FOLDER_PATH_4) )
KEYBOARD_FOLDER_5 := $$ ( notdir $$ ( KEYBOARD_FOLDER_PATH_5) )
KEYMAPS :=
# get a list of all keymaps
@ -325,29 +320,29 @@ define PARSE_KEYBOARD
$$ ( KEYBOARD_FOLDER_3) $$ ( KEYBOARD_FOLDER_4) $$ ( KEYBOARD_FOLDER_5) , $$ ( KEYMAPS) ) )
KEYBOARD_LAYOUTS :=
ifneq ( " $$ (wildcard $( ROOT_DIR) /keyboards/ $$ (KEYBOARD_FOLDER_ 5)/rules.mk)" ,"" )
ifneq ( " $$ (wildcard $( ROOT_DIR) /keyboards/ $$ (KEYBOARD_FOLDER_ PATH_ 5)/rules.mk)" ,"" )
LAYOUTS :=
$$ ( eval include $( ROOT_DIR) /keyboards/$$ ( KEYBOARD_FOLDER_5) /rules.mk)
$$ ( eval include $( ROOT_DIR) /keyboards/$$ ( KEYBOARD_FOLDER_PATH_ 5) /rules.mk)
KEYBOARD_LAYOUTS := $$ ( sort $$ ( LAYOUTS) $$ ( KEYBOARD_LAYOUTS) )
endif
ifneq ( " $$ (wildcard $( ROOT_DIR) /keyboards/ $$ (KEYBOARD_FOLDER_ 4)/rules.mk)" ,"" )
ifneq ( " $$ (wildcard $( ROOT_DIR) /keyboards/ $$ (KEYBOARD_FOLDER_ PATH_ 4)/rules.mk)" ,"" )
LAYOUTS :=
$$ ( eval include $( ROOT_DIR) /keyboards/$$ ( KEYBOARD_FOLDER_4) /rules.mk)
$$ ( eval include $( ROOT_DIR) /keyboards/$$ ( KEYBOARD_FOLDER_PATH_ 4) /rules.mk)
KEYBOARD_LAYOUTS := $$ ( sort $$ ( LAYOUTS) $$ ( KEYBOARD_LAYOUTS) )
endif
ifneq ( " $$ (wildcard $( ROOT_DIR) /keyboards/ $$ (KEYBOARD_FOLDER_ 3)/rules.mk)" ,"" )
ifneq ( " $$ (wildcard $( ROOT_DIR) /keyboards/ $$ (KEYBOARD_FOLDER_ PATH_ 3)/rules.mk)" ,"" )
LAYOUTS :=
$$ ( eval include $( ROOT_DIR) /keyboards/$$ ( KEYBOARD_FOLDER_3) /rules.mk)
$$ ( eval include $( ROOT_DIR) /keyboards/$$ ( KEYBOARD_FOLDER_PATH_ 3) /rules.mk)
KEYBOARD_LAYOUTS := $$ ( sort $$ ( LAYOUTS) $$ ( KEYBOARD_LAYOUTS) )
endif
ifneq ( " $$ (wildcard $( ROOT_DIR) /keyboards/ $$ (KEYBOARD_FOLDER_ 2)/rules.mk)" ,"" )
ifneq ( " $$ (wildcard $( ROOT_DIR) /keyboards/ $$ (KEYBOARD_FOLDER_ PATH_ 2)/rules.mk)" ,"" )
LAYOUTS :=
$$ ( eval include $( ROOT_DIR) /keyboards/$$ ( KEYBOARD_FOLDER_2) /rules.mk)
$$ ( eval include $( ROOT_DIR) /keyboards/$$ ( KEYBOARD_FOLDER_PATH_ 2) /rules.mk)
KEYBOARD_LAYOUTS := $$ ( sort $$ ( LAYOUTS) $$ ( KEYBOARD_LAYOUTS) )
endif
ifneq ( " $$ (wildcard $( ROOT_DIR) /keyboards/ $$ (KEYBOARD_FOLDER_ 1)/rules.mk)" ,"" )
ifneq ( " $$ (wildcard $( ROOT_DIR) /keyboards/ $$ (KEYBOARD_FOLDER_ PATH_ 1)/rules.mk)" ,"" )
LAYOUTS :=
$$ ( eval include $( ROOT_DIR) /keyboards/$$ ( KEYBOARD_FOLDER_1) /rules.mk)
$$ ( eval include $( ROOT_DIR) /keyboards/$$ ( KEYBOARD_FOLDER_PATH_ 1) /rules.mk)
KEYBOARD_LAYOUTS := $$ ( sort $$ ( LAYOUTS) $$ ( KEYBOARD_LAYOUTS) )
endif