From 49343d20d90bed7285c6ea0fa447b23b20efe92e Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Thu, 14 Nov 2019 13:21:48 +0900 Subject: Makefile: don't depend dir Current each files are depend its dir, but because of it, sometimes we needed to run "make" twice. This patch creates dir as 1 target, and each files never depends it. Signed-off-by: Kuninori Morimoto --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8682745..fbeb8e8 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ HTML = ./scripts/html.py FIND = ./scripts/find.py ALLYAML = $(shell ${FIND} -all) FOLDERS = $(subst ./,,$(shell cd ./projects; find -type d)) +HTMLDIR = $(addprefix html/, ${FOLDERS}) PRODIR = $(shell find ./projects -type d) TEAM = Core IO MM MEMBER = BSP Geert Jacopo Kaneko Kieran Laurent Magnus Marek Morimoto Niklas Shimoda Simon Ulrich Wolfram NoAssignee @@ -9,6 +10,7 @@ STATUS = New Active Blocked Paused Done Abandoned NOPARAM = menu subindex body index all: + @make -s ${HTMLDIR} @make -s LISTS="${MEMBER}" TARGET=finds EXP1=member EXP2=-a loop @make -s LISTS="${STATUS}" TARGET=finds EXP1=status EXP2=-s loop @make -s LISTS="${TEAM}" TARGET=finds EXP1=team EXP2=-t loop @@ -21,10 +23,10 @@ all: index.html: @ln html/index.html . -$(dir ${FILE}): - @mkdir -p $@ +${HTMLDIR}: + mkdir -p $@ -${FILE}: ${HTML_OPTION2} $(dir ${FILE}) ${HTML} +${FILE}: ${HTML_OPTION2} ${HTML} echo $@ ${HTML} ${HTML_OPTION1} ${HTML_OPTION2} > $@ loop: -- cgit v1.2.3