1 MANPAGES = ../kamictl/kamictl.8 \
4 ../kamid/kamid.conf.5 \
6 ../kamiproxy/kamiproxy.1
8 PAGES = index.gmi install.gmi tutorial.gmi caveats.gmi
10 TITLE_caveats.gmi = caveats
11 TITLE_index.gmi = home
12 TITLE_install.gmi = install guide
13 TITLE_tutorial.gmi = tutorial
15 SUBST = ./subst CURRV=0.1 NEXTV=0.2 \
16 GH=https://github.com/omar-polo/kamid \
17 CURRSIGN=RWTaqCGPkA11Nhvo+uW+U1EKASiVo3IxKrQOqLaEtpYDdw5qLzs4a/9T \
18 NEXTSIGN=RWRwqQVDYtY1jTc1lXqyu2e+ZGWgN/h3n/LE/at7pNTuJ1qWsogFvDh8
20 SUBST_GEM = ${SUBST} MANEXT=txt EXT=gmi
21 SUBST_WWW = ${SUBST} MANEXT=html EXT=html
23 .PHONY: all dirs manpages server-www serve-gemini upload clean titles
25 all: dirs manpages pages
34 ./mdoc2html.sh $m www/${m:T}.html
35 man -O width=65 -Tutf8 -l $m | col -b > gemini/${m:T}.txt
40 ${SUBST_GEM} $p > gemini/$p
42 ${SUBST_WWW} TITLE=${TITLE_${p}:Q} header.html > www/${p:.gmi=.html}
43 ${MAKE} titles | ./menu.pl "${p:.gmi=.html}" >> www/${p:.gmi=.html}
44 ${SUBST_WWW} $p | ./gem2html >> www/${p:.gmi=.html}
45 cat footer.html >> www/${p:.gmi=.html}
49 python3 -m http.server --directory www 8888
55 rsync --delete -a www/ op:sites/kamid.omarpolo.com
56 rsync --delete -a gemini/ op:gemini/kamid.omarpolo.com
63 @printf "%s %s\n" "${p:.gmi=.html}" ${TITLE_${p}:Q}