From 5d8f53d626f6f2ff31a6a3a956b92054ea4b7275 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 21 Oct 2016 20:29:28 +0200 Subject: [PATCH] automatically expand subdir targets --- Makefile | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/Makefile b/Makefile index 868c43188..616ad7d51 100644 --- a/Makefile +++ b/Makefile @@ -21,22 +21,11 @@ list-full: @${MAKE} -C ${PLUGIN_DIR} -V PLUGIN_COMMENT .endfor -lint: -.for PLUGIN_DIR in ${PLUGIN_DIRS} - ${MAKE} -C ${PLUGIN_DIR} lint -.endfor +TARGETS= lint sweep sytle style-fix clean -sweep: -.for PLUGIN_DIR in ${PLUGIN_DIRS} - ${MAKE} -C ${PLUGIN_DIR} sweep -.endfor - -style: -.for PLUGIN_DIR in ${PLUGIN_DIRS} - ${MAKE} -C ${PLUGIN_DIR} style -.endfor - -style-fix: -.for PLUGIN_DIR in ${PLUGIN_DIRS} - ${MAKE} -C ${PLUGIN_DIR} style-fix +.for TARGET in ${TARGETS} +${TARGET}: +. for PLUGIN_DIR in ${PLUGIN_DIRS} + @${MAKE} -C ${PLUGIN_DIR} ${TARGET} +. endfor .endfor