11 TITLE_index.gmi = home
12 TITLE_changelog.gmi = changelog
13 TITLE_contrib.gmi = contrib
14 TITLE_quickstart.gmi = guide
17 REPOLOGY_BANNER = https://repology.org/badge/vertical-allrepos/gmid.svg
18 REPOLOGY_URL = https://repology.org/project/gmid/versions
20 SUBST = ./subst GITHUB=https://github.com/omar-polo/gmid \
24 TREE=https://github.com/omar-polo/gmid/blob/master
26 SUBST_GEM = ${SUBST} MANEXT=txt EXT=gmi REPOLOGY=${REPOLOGY_URL}
27 SUBST_WWW = ${SUBST} MANEXT=html EXT=html REPOLOGY=${REPOLOGY_BANNER}
29 .PHONY: all dirs manpages serve-www serve-gemini upload clean titles
31 all: dirs manpages pages
33 cp vim-screenshot.png www/
34 cp vim-screenshot.png gemini/
41 ./mdoc2html.sh $m www/${m:T}.html
42 man -O width=65 -Tutf8 -l $m | col -b > gemini/${m:T}.txt
47 ${MAKE} titles-gem | ./menu.pl $p gemini > gemini/$p
48 ${SUBST_GEM} $p >> gemini/$p
50 ${SUBST_WWW} TITLE=${TITLE_${p}:Q} header.html > www/${p:.gmi=.html}
51 ${MAKE} titles-www | ./menu.pl "${p:.gmi=.html}" html >> www/${p:.gmi=.html}
52 ${SUBST_WWW} $p | ./gem2html >> www/${p:.gmi=.html}
53 cat footer.html >> www/${p:.gmi=.html}
57 python3 -m http.server --directory www 8888
63 openrsync --rsync-path=openrsync --del -a www/ antartica:/var/www/gmid.omarpolo.com
64 openrsync --rsync-path=openrsync --del -a gemini/ antartica:/var/gemini/gmid.omarpolo.com
68 @printf "%s %s\n" "${p}" ${TITLE_${p}:Q}
73 @printf "%s %s\n" "${p:.gmi=.html}" ${TITLE_${p}:Q}