blob: 0070d739e8408f0b5d5c83045446f71f6fb5ca3e (
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
|
HTML = ./scripts/html.py
FIND = ./scripts/find.py
ALLYAML = $(shell ${FIND} -all)
FOLDERS = $(subst ./,,$(shell cd ./projects; find -type d))
HTMLDIR = $(addprefix html/, ${FOLDERS})
PRODIR = $(shell find ./projects -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 .git/hooks/pre-commit
@make -s ${HTMLDIR}
@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 LISTS="${ALLYAML}" TARGET=file loop
@make -s LISTS="${NOPARAM}" TARGET=noparam loop
@make -s LISTS="${FOLDERS}" TARGET=summary loop
@make -s bsp
@make -s index.html
.git/hooks/pre-commit:
@ln -s ../../scripts/pre-commit.sh .git/hooks/pre-commit
index.html:
@ln html/index.html .
${HTMLDIR}:
mkdir -p $@
${FILE}: ${HTML_OPTION2} ${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} HTML_OPTION2="${PRODIR}" 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
|