10 TITLE_changelog.gmi = changelog
11 TITLE_contrib.gmi = contrib
12 TITLE_quickstart.gmi = quickstart
14 REPOLOGY_BANNER = https://repology.org/badge/vertical-allrepos/gmid.svg
15 REPOLOGY_URL = https://repology.org/project/gmid/versions
17 SUBST = ./subst GITHUB=https://github.com/omar-polo/gmid \
22 SUBST_GEM = ${SUBST} MANEXT=txt EXT=gmi REPOLOGY=${REPOLOGY_URL}
23 SUBST_WWW = ${SUBST} MANEXT=html EXT=html REPOLOGY=${REPOLOGY_BANNER}
25 .PHONY: all dirs manpages serve-www serve-gemini upload clean titles
27 all: dirs manpages pages
29 cp vim-screenshot.png www/
30 cp vim-screenshot.png gemini/
37 ./mdoc2html.sh $m www/${m:T}.html
38 man -O width=65 -Tutf8 -l $m | col -b > gemini/${m:T}.txt
43 ${MAKE} titles-gem | ./menu.pl $p gemini > gemini/$p
44 ${SUBST_GEM} $p >> gemini/$p
46 ${SUBST_WWW} TITLE=${TITLE_${p}:Q} header.html > www/${p:.gmi=.html}
47 ${MAKE} titles-www | ./menu.pl "${p:.gmi=.html}" html >> www/${p:.gmi=.html}
48 ${SUBST_WWW} $p | ./gem2html >> www/${p:.gmi=.html}
49 cat footer.html >> www/${p:.gmi=.html}
53 python3 -m http.server --directory www 8888
59 rsync --delete -a www/ op:sites/gmid.omarpolo.com
60 rsync --delete -a gemini/ op:gemini/gmid.omarpolo.com
64 @printf "%s %s\n" "${p}" ${TITLE_${p}:Q}
69 @printf "%s %s\n" "${p:.gmi=.html}" ${TITLE_${p}:Q}