summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 0070d73..827f7b7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,10 @@
-HTML = ./scripts/html.py
+HTML = ./scripts/myhtml.py
FIND = ./scripts/find.py
ALLYAML = $(shell ${FIND} -all)
-FOLDERS = $(subst ./,,$(shell cd ./projects; find -type d))
-HTMLDIR = $(addprefix html/, ${FOLDERS})
+PROJECT = $(subst ./,,$(shell cd ./projects; find -type d))
+WIKI = $(shell find wiki -name "*.wiki")
+WIKIDIR = html/wiki
+HTMLDIR = $(addprefix html/, ${PROJECT})
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
@@ -11,13 +13,14 @@ NOPARAM = menu subindex body index
all:
@make -s .git/hooks/pre-commit
- @make -s ${HTMLDIR}
+ @make -s ${HTMLDIR} ${WIKIDIR}
@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 LISTS="${PROJECT}" TARGET=summary loop
+ @make -s LISTS="${WIKI}" TARGET=wikis loop
@make -s bsp
@make -s index.html
@@ -27,7 +30,7 @@ all:
index.html:
@ln html/index.html .
-${HTMLDIR}:
+${HTMLDIR} ${WIKIDIR}:
mkdir -p $@
${FILE}: ${HTML_OPTION2} ${HTML}
@@ -50,6 +53,8 @@ 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
+wikis:
+ make HTML_OPTION1=wiki HTML_OPTION2="${PARAM}" FILE=$(addprefix html/,$(subst .wiki,.html,${PARAM})) basic
clean:
@rm -fr html
@rm -fr *.html