mirror of
https://github.com/opnsense/plugins.git
synced 2026-02-03 20:40:37 -05:00
make: expand on plain target or target with argument
This commit is contained in:
parent
0f09a24fc8
commit
a696ef090f
1 changed files with 10 additions and 7 deletions
17
Makefile
17
Makefile
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue