summaryrefslogtreecommitdiff
path: root/Makefile
blob: 1dfe8b1305447891f67d005f28563244e0f24c36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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