diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-02-25 15:58:53 +0900 |
---|---|---|
committer | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-04-09 14:59:46 +0900 |
commit | 0ac23cddb502bdf9180e94623f42f20ae999a4c8 (patch) | |
tree | c6f838e7fbd32e139d56d3bfc36a4b27655474f8 /Makefile | |
parent | 39f25bf805115fabba4290328492aa23db0d7013 (diff) |
Add html support
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 63 |
1 files changed, 63 insertions, 0 deletions
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 |