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 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;\
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} > $@
html/bsp.html: ${ALLYAML} ${CMD}
@echo $@
@${CMD} bsp ${ALLYAML} > $@
clean:
@rm -fr html
@rm -fr *.html