summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-11-14 13:21:48 +0900
committerKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-11-14 15:56:33 +0900
commit49343d20d90bed7285c6ea0fa447b23b20efe92e (patch)
tree7bc5e0cbe4ae4fa66a7e69285cf368565c475c13 /Makefile
parent87034fb61c433f2c3a45aaaa60e071dc9a9a2023 (diff)
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 <kuninori.morimoto.gx@renesas.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files 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: