From 0ac23cddb502bdf9180e94623f42f20ae999a4c8 Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Mon, 25 Feb 2019 15:58:53 +0900 Subject: Add html support Signed-off-by: Kuninori Morimoto --- Makefile | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1dfe8b1 --- /dev/null +++ b/Makefile @@ -0,0 +1,63 @@ +CMD = ./scripts/html.py +FOLDERS = $(subst ./,,$(shell cd ./projects; find -type d)) +DST = $(subst yaml,html,$(subst projects,html,${SRC})) +MEMBER = BSP Geert Jacopo Kaneko Kieran Laurent Magnus Marek Morimoto Niklas Shimoda Simon Ulrich Wolfram +STATUS = New Active Blocked Paused Done Abandoned +SPF = menu subindex body + +all: summary spf files index.html members statuss + +summary: + @for folder in ${FOLDERS}; do\ + mkdir -p ./html/$${folder};\ + make -s DIR=$${folder} ./html/$${folder}/summary.html;\ + done; + +html/${DIR}/summary.html: ./projects/${DIR} ${CMD} + @echo html/${DIR}/summary.html + ${CMD} summary projects/${DIR} > ./html/${DIR}/summary.html; \ + +spf: + @for cmd in ${SPF}; do\ + make -s TGT=$${cmd} html/$${cmd}.html;\ + done; + +${SPF:%=html/%.html}: projects/* ${CMD} + @echo $@ + ${CMD} ${TGT} > $@ + +index.html: ${CMD} + @echo $@ + @${CMD} index > $@ + +files: + @for file in $(shell ./scripts/find.py -a); do\ + make -s SRC=$${file} file;\ + done; + +file: + @make -s SRC=${SRC} DST=${DST} TGT=task ${DST} + +members: + @for mem in ${MEMBER}; do\ + make -s MEM=$${mem} member;\ + done; + +member: + @make -s SRC="$(shell ./scripts/find.py -a ${MEM})" DST=./html/${MEM}.html TGT="member ${MEM}" ./html/${MEM}.html + +statuss: + @for status in ${STATUS}; do\ + make -s STA=$${status} status;\ + done; + +status: + @make -s SRC="$(shell ./scripts/find.py -s ${STA})" DST=./html/${STA}.html TGT="status ${STA}" ./html/${STA}.html + +${DST}: ${SRC} ${CMD} + @echo "${DST}" + ${CMD} ${TGT} ${SRC} > $@ + +clean: + @rm -fr html + @rm -fr *.html -- cgit v1.2.3 From 2d36f0eefb2f0bb61c2ed2b46d9043ec4564f90a Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Tue, 26 Feb 2019 11:37:24 +0900 Subject: Add BSP patch list on menu Signed-off-by: Kuninori Morimoto --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1dfe8b1..89e3d6f 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,12 @@ CMD = ./scripts/html.py +ALLYAML = $(shell ./scripts/find.py -a) FOLDERS = $(subst ./,,$(shell cd ./projects; find -type d)) DST = $(subst yaml,html,$(subst projects,html,${SRC})) MEMBER = BSP Geert Jacopo Kaneko Kieran Laurent Magnus Marek Morimoto Niklas Shimoda Simon Ulrich Wolfram STATUS = New Active Blocked Paused Done Abandoned SPF = menu subindex body -all: summary spf files index.html members statuss +all: summary spf files index.html members statuss html/bsp.html summary: @for folder in ${FOLDERS}; do\ @@ -31,7 +32,7 @@ index.html: ${CMD} @${CMD} index > $@ files: - @for file in $(shell ./scripts/find.py -a); do\ + @for file in ${ALLYAML}; do\ make -s SRC=$${file} file;\ done; @@ -58,6 +59,10 @@ ${DST}: ${SRC} ${CMD} @echo "${DST}" ${CMD} ${TGT} ${SRC} > $@ +html/bsp.html: ${ALLYAML} ${CMD} + @echo $@ + @${CMD} bsp ${ALLYAML} > $@ + clean: @rm -fr html @rm -fr *.html -- cgit v1.2.3 From 52373e42e7b11961fcff298822d5ba025e0dedfd Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Tue, 26 Feb 2019 17:27:35 +0900 Subject: html: add team menu Signed-off-by: Kuninori Morimoto --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 89e3d6f..fa49132 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,12 @@ CMD = ./scripts/html.py ALLYAML = $(shell ./scripts/find.py -a) FOLDERS = $(subst ./,,$(shell cd ./projects; find -type d)) DST = $(subst yaml,html,$(subst projects,html,${SRC})) +TEAM = Core IO MM MEMBER = BSP Geert Jacopo Kaneko Kieran Laurent Magnus Marek Morimoto Niklas Shimoda Simon Ulrich Wolfram STATUS = New Active Blocked Paused Done Abandoned SPF = menu subindex body -all: summary spf files index.html members statuss html/bsp.html +all: summary spf files index.html members statuss teams html/bsp.html summary: @for folder in ${FOLDERS}; do\ @@ -55,6 +56,14 @@ statuss: status: @make -s SRC="$(shell ./scripts/find.py -s ${STA})" DST=./html/${STA}.html TGT="status ${STA}" ./html/${STA}.html +teams: + @for team in ${TEAM}; do\ + make -s TM=$${team} team;\ + done; + +team: + @make -s SRC="$(shell ./scripts/find.py -t ${TM})" DST=./html/${TM}.html TGT="team ${TM}" ./html/${TM}.html + ${DST}: ${SRC} ${CMD} @echo "${DST}" ${CMD} ${TGT} ${SRC} > $@ -- cgit v1.2.3 From 8df29fe78c6e982dc370252755d291fb69928fd6 Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Wed, 27 Feb 2019 17:48:08 +0900 Subject: Makefile: cleanup all target Basic step is over. Let's cleanup Makefile Signed-off-by: Kuninori Morimoto --- Makefile | 105 +++++++++++++++++++++++---------------------------------------- 1 file changed, 38 insertions(+), 67 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fa49132..e03d509 100644 --- a/Makefile +++ b/Makefile @@ -1,77 +1,48 @@ -CMD = ./scripts/html.py -ALLYAML = $(shell ./scripts/find.py -a) +HTML = ./scripts/html.py +FIND = ./scripts/find.py +ALLYAML = $(shell ${FIND} -a) FOLDERS = $(subst ./,,$(shell cd ./projects; find -type d)) -DST = $(subst yaml,html,$(subst projects,html,${SRC})) TEAM = Core IO MM MEMBER = BSP Geert Jacopo Kaneko Kieran Laurent Magnus Marek Morimoto Niklas Shimoda Simon Ulrich Wolfram STATUS = New Active Blocked Paused Done Abandoned -SPF = menu subindex body - -all: summary spf files index.html members statuss teams html/bsp.html - -summary: - @for folder in ${FOLDERS}; do\ - mkdir -p ./html/$${folder};\ - make -s DIR=$${folder} ./html/$${folder}/summary.html;\ - done; - -html/${DIR}/summary.html: ./projects/${DIR} ${CMD} - @echo html/${DIR}/summary.html - ${CMD} summary projects/${DIR} > ./html/${DIR}/summary.html; \ - -spf: - @for cmd in ${SPF}; do\ - make -s TGT=$${cmd} html/$${cmd}.html;\ - done; - -${SPF:%=html/%.html}: projects/* ${CMD} - @echo $@ - ${CMD} ${TGT} > $@ - -index.html: ${CMD} - @echo $@ - @${CMD} index > $@ - -files: - @for file in ${ALLYAML}; do\ - make -s SRC=$${file} file;\ +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 -s SRC=${SRC} DST=${DST} TGT=task ${DST} - -members: - @for mem in ${MEMBER}; do\ - make -s MEM=$${mem} member;\ - done; - -member: - @make -s SRC="$(shell ./scripts/find.py -a ${MEM})" DST=./html/${MEM}.html TGT="member ${MEM}" ./html/${MEM}.html - -statuss: - @for status in ${STATUS}; do\ - make -s STA=$${status} status;\ - done; - -status: - @make -s SRC="$(shell ./scripts/find.py -s ${STA})" DST=./html/${STA}.html TGT="status ${STA}" ./html/${STA}.html - -teams: - @for team in ${TEAM}; do\ - make -s TM=$${team} team;\ - done; - -team: - @make -s SRC="$(shell ./scripts/find.py -t ${TM})" DST=./html/${TM}.html TGT="team ${TM}" ./html/${TM}.html - -${DST}: ${SRC} ${CMD} - @echo "${DST}" - ${CMD} ${TGT} ${SRC} > $@ - -html/bsp.html: ${ALLYAML} ${CMD} - @echo $@ - @${CMD} bsp ${ALLYAML} > $@ - + 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 -- cgit v1.2.3 From 7997deae1430017e0cae7ad5337ffdfff0dc0e71 Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Wed, 6 Mar 2019 10:42:19 +0900 Subject: find: replace -a to -all commit fbd5adac3e9a0 ("find: add -a option") added -a option to indicate all tasks, but it was same as assignee member. This patch fixup it. Signed-off-by: Kuninori Morimoto --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e03d509..0e1c823 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ HTML = ./scripts/html.py FIND = ./scripts/find.py -ALLYAML = $(shell ${FIND} -a) +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 -- cgit v1.2.3 From 0afee29de0672e7d8244d65c610aa0a009243c41 Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Wed, 6 Mar 2019 10:55:10 +0900 Subject: html: add NoAssignee support There are no assignee tasks, and html.py will be error at such tasks. This patch care it. Signed-off-by: Kuninori Morimoto --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0e1c823..165d3c9 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ 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 +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 -- cgit v1.2.3