make: expand on plain target or target with argument

This commit is contained in:
Franco Fichtner 2025-11-20 16:00:23 -05:00
parent 0f09a24fc8
commit a696ef090f

View file

@ -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: