mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
make: expand on plain target or target with argument
This commit is contained in:
@@ -47,15 +47,18 @@ list:
|
||||
$$(if [ -n "$$(${MAKE} -C ${PLUGIN_DIR} -v PLUGIN_OBSOLETE)" ]; then echo "(pending removal)"; fi)
|
||||
.endfor
|
||||
|
||||
# shared targets that are sane to run from the root directory
|
||||
# known good targets (expanded below)
|
||||
TARGETS= clean glint lint revision style sweep test
|
||||
|
||||
.for TARGET in ${TARGETS}
|
||||
${TARGET}:
|
||||
. for PLUGIN_DIR in ${PLUGIN_DIRS}
|
||||
@echo ">>> Entering ${PLUGIN_DIR}"
|
||||
@${MAKE} -C ${PLUGIN_DIR} ${TARGET}
|
||||
. endfor
|
||||
.for _TARGET in ${.TARGETS}
|
||||
__TARGET= ${TARGETS:M${_TARGET:C/-.*//}}
|
||||
. if "${__TARGET}" != ""
|
||||
${_TARGET}:
|
||||
. for PLUGIN_DIR in ${PLUGIN_DIRS}
|
||||
@echo ">>> Entering ${PLUGIN_DIR} with target '${_TARGET}'"
|
||||
@${MAKE} -C ${PLUGIN_DIR} ${_TARGET}
|
||||
. endfor
|
||||
. endif
|
||||
.endfor
|
||||
|
||||
license:
|
||||
|
||||
Reference in New Issue
Block a user