diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-11-14 13:21:48 +0900 |
---|---|---|
committer | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-11-14 15:56:33 +0900 |
commit | 49343d20d90bed7285c6ea0fa447b23b20efe92e (patch) | |
tree | 7bc5e0cbe4ae4fa66a7e69285cf368565c475c13 | |
parent | 87034fb61c433f2c3a45aaaa60e071dc9a9a2023 (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>
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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: |