summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-12-05 17:54:12 +0900
committerKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-12-09 11:40:19 +0900
commite21bbbe516921e227f92a79aee8f907ee2563828 (patch)
tree843c3d69b31dfbf04f759572a92204a81c70082e /Makefile
parent43717ae31ee76dab029cc6ba0aa07e6cd7688a55 (diff)
Wiki support 1st version
Renesas contracted service provider will stop Redmine at 2021. But, We want to keep it. This patch start to support Wiki at PeriJect. 100% compatible is difficult, but some of them can be. These are known un-compatiblity. - list "-" doesn't work - line "---" doesn't work - [[link]] doesn't work (periject supports similar one) - !image! doesn't work (periject supports similar one) - <pre>...</pre> doesn't allow white line - {{toc}} doesn't work Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
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