1 MANPAGES = ../kamictl/kamictl.8 \
4 ../kamid/kamid.conf.5 \
7 PAGES = index.gmi install.gmi tutorial.gmi
10 TITLE_install.gmi = install guide
11 TITLE_tutorial.gmi = tutorial
13 SUBST_GEM = ./subst MANEXT=txt EXT=gmi
14 SUBST_WWW = ./subst MANEXT=html EXT=html
16 .PHONY: all dirs manpages server-www serve-gemini upload clean titles
18 all: dirs manpages pages
27 ./mdoc2html.sh $m www/${m:T}.html
28 man -O width=65 -Tutf8 -l $m | col -b > gemini/${m:T}.txt
33 ${SUBST_GEM} $p > gemini/$p
35 ${SUBST_WWW} TITLE=${TITLE_${p}:Q} header.html > www/${p:.gmi=.html}
36 ${MAKE} titles | ./menu.pl "${p:.gmi=.html}" >> www/${p:.gmi=.html}
37 ${SUBST_WWW} $p | ./gem2html >> www/${p:.gmi=.html}
38 cat footer.html >> www/${p:.gmi=.html}
42 python3 -m http.server --directory www 8888
48 rsync --delete -a www/ op:sites/kamid.omarpolo.com
49 rsync --delete -a gemini/ op:gemini/kamid.omarpolo.com
56 @printf "%s %s\n" "${p:.gmi=.html}" ${TITLE_${p}:Q}