summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-07-22 09:44:47 +0900
committerKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-07-22 09:44:47 +0900
commit1c36067654b64e5233248aba5ce9867d59c15fd3 (patch)
tree71f25d91c027cf6c6a53fd4ab0189fa6806b0296 /Makefile
parent1f3b1462200ad21cea1d9917ad88f709ba2e03b2 (diff)
parentfb3832fcf446c5e1e52322e254a1d01f77967c77 (diff)
Merge branch 'viewer' into HEAD
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..165d3c9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,48 @@
+HTML = ./scripts/html.py
+FIND = ./scripts/find.py
+ALLYAML = $(shell ${FIND} -all)
+FOLDERS = $(subst ./,,$(shell cd ./projects; find -type d))
+TEAM = Core IO MM
+MEMBER = BSP Geert Jacopo Kaneko Kieran Laurent Magnus Marek Morimoto Niklas Shimoda Simon Ulrich Wolfram NoAssignee
+STATUS = New Active Blocked Paused Done Abandoned
+NOPARAM = menu subindex body index
+
+all:
+ @make -s LISTS="${FOLDERS}" TARGET=summary loop
+ @make -s LISTS="${NOPARAM}" TARGET=noparam loop
+ @make -s LISTS="${ALLYAML}" TARGET=file loop
+ @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
+ @make -s bsp
+ @make -s index.html
+
+index.html:
+ @ln html/index.html .
+
+$(dir ${FILE}):
+ @mkdir -p $@
+
+${FILE}: ${HTML_OPTION2} $(dir ${FILE}) ${HTML}
+ echo $@
+ ${HTML} ${HTML_OPTION1} ${HTML_OPTION2} > $@
+loop:
+ for list in ${LISTS}; do\
+ make PARAM=$${list} EXP1=${EXP1} EXP2=${EXP2} ${TARGET};\
+ done;
+
+basic:
+ make HTML_OPTION1="${HTML_OPTION1}" HTML_OPTION2="${HTML_OPTION2}" FILE=${FILE} ${FILE}
+summary:
+ make HTML_OPTION1=summary HTML_OPTION2=projects/${PARAM} FILE=html/${PARAM}/summary.html basic
+file:
+ make HTML_OPTION1=task HTML_OPTION2=${PARAM} FILE=$(subst yaml,html,$(subst projects,html,${PARAM})) basic
+noparam:
+ make HTML_OPTION1=${PARAM} FILE=html/${PARAM}.html basic
+bsp:
+ make HTML_OPTION1=bsp HTML_OPTION2="${ALLYAML}" FILE=html/bsp.html basic
+finds:
+ make HTML_OPTION1="${EXP1} ${PARAM}" HTML_OPTION2="$(shell ${FIND} ${EXP2} ${PARAM})" FILE=html/${PARAM}.html basic
+clean:
+ @rm -fr html
+ @rm -fr *.html