@ -661,29 +661,36 @@ show_path:
@echo SRC = $( SRC)
SUBDIRS := $( sort $( dir $( wildcard $( TOP_DIR) /keyboard/*/.) ) )
all-keyboards-defaults :
all-keyboards-defaults -% :
@for x in $( SUBDIRS) ; do \
printf " Compiling with default: $$ x " | $( AWK_CMD) ; \
LOG = $$ ( $( MAKE) -C $$ x VERBOSE = $( VERBOSE) COLOR = $( COLOR) SILENT = true 2>& 1) ; if [ $$ ? -gt 0 ] ; then $( PRINT_ERROR_PLAIN) ; elif [ " $$ LOG " != "" ] ; then $( PRINT_WARNING_PLAIN) ; else $( PRINT_OK) ; fi ; \
LOG = $$ ( $( MAKE) -C $$ x $( subst all-keyboards-defaults-,,$@ ) VERBOSE = $( VERBOSE) COLOR = $( COLOR) SILENT = true 2>& 1) ; if [ $$ ? -gt 0 ] ; then $( PRINT_ERROR_PLAIN) ; elif [ " $$ LOG " != "" ] ; then $( PRINT_WARNING_PLAIN) ; else $( PRINT_OK) ; fi ; \
done
all-keyboards-defaults : all -keyboards -defaults -all
KEYBOARDS := $( SUBDIRS:$( TOP_DIR) /keyboard/%/= /keyboard/%)
all-keyboards : $( KEYBOARDS )
all-keyboards -% : $( KEYBOARDS )
/keyboard/% :
$( eval KEYBOARD = $( patsubst /keyboard/%,%,$@ ) )
$( eval KEYMAPS = $( notdir $( patsubst %/.,%,$( wildcard $( TOP_DIR) $@ /keymaps/*/.) ) ) )
@for x in $( KEYMAPS) ; do \
printf " Compiling $( BOLD) $( KEYBOARD) $( NO_COLOR) with $( BOLD) $$ x $( NO_COLOR) " | $( AWK) '{ printf "%-88s", $$0; }' ; \
LOG = $$ ( $( MAKE) -C $( TOP_DIR) $@ keymap = $$ x VERBOSE = $( VERBOSE) COLOR = $( COLOR) SILENT = true 2>& 1) ; if [ $$ ? -gt 0 ] ; then $( PRINT_ERROR_PLAIN) ; elif [ " $$ LOG " != "" ] ; then $( PRINT_WARNING_PLAIN) ; else $( PRINT_OK) ; fi ; \
LOG = $$ ( $( MAKE) -C $( TOP_DIR) $@ $( subst all-keyboards-,,$@ ) keymap = $$ x VERBOSE = $( VERBOSE) COLOR = $( COLOR) SILENT = true 2>& 1) ; if [ $$ ? -gt 0 ] ; then $( PRINT_ERROR_PLAIN) ; elif [ " $$ LOG " != "" ] ; then $( PRINT_WARNING_PLAIN) ; else $( PRINT_OK) ; fi ; \
done
all-keymaps :
all-keyboards : all -keyboards -all
all-keymaps-% :
$( eval MAKECONFIG = $( call get_target,all-keymaps,$@ ) )
$( eval KEYMAPS = $( notdir $( patsubst %/.,%,$( wildcard $( TOP_DIR) /keyboard/$( KEYBOARD) /keymaps/*/.) ) ) )
@for x in $( KEYMAPS) ; do \
printf " Compiling $( BOLD) $( KEYBOARD) $( NO_COLOR) with $( BOLD) $$ x $( NO_COLOR) " | $( AWK) '{ printf "%-88s", $$0; }' ; \
LOG = $$ ( $( MAKE) keyboard = $( KEYBOARD) keymap = $$ x VERBOSE = $( VERBOSE) COLOR = $( COLOR) SILENT = true 2>& 1) ; if [ $$ ? -gt 0 ] ; then $( PRINT_ERROR_PLAIN) ; elif [ " $$ LOG " != "" ] ; then $( PRINT_WARNING_PLAIN) ; else $( PRINT_OK) ; fi ; \
LOG = $$ ( $( MAKE) $( subst all-keymaps-,,$@ ) keyboard = $( KEYBOARD) keymap = $$ x VERBOSE = $( VERBOSE) COLOR = $( COLOR) SILENT = true 2>& 1) ; if [ $$ ? -gt 0 ] ; then $( PRINT_ERROR_PLAIN) ; elif [ " $$ LOG " != "" ] ; then $( PRINT_WARNING_PLAIN) ; else $( PRINT_OK) ; fi ; \
done
all-keymaps : all -keymaps -all
# Create build directory
$( shell mkdir $ ( BUILD_DIR ) 2>/dev /null )
@ -700,4 +707,5 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
b u i l d e l f h e x e e p l s s s y m c o f f e x t c o f f \
c l e a n c l e a n _ l i s t d e b u g g d b - c o n f i g s h o w _ p a t h \
p r o g r a m t e e n s y d f u f l i p d f u - e e f l i p - e e d f u - s t a r t \
a l l - k e y b o a r d s - d e f a u l t s a l l - k e y b o a r d s a l l - k e y m a p s
a l l - k e y b o a r d s - d e f a u l t s a l l - k e y b o a r d s a l l - k e y m a p s \
a l l - k e y b o a r d s - d e f a u l t s - % a l l - k e y b o a r d s - % a l l - k e y m a p s - %