pn

the website
git clone ssh://anon@git.pastanoggin.com
Log | Files | Refs | README | LICENSE

commit 4421e58e64811bdf2e879e76a0c255148df69e7b
parent b312f423d6d44ba5588ba3c261d1a681498697a2
Author: noodle <noodle@pastanoggin.com>
Date:   Thu, 26 Mar 2026 11:05:14 +0000

ditch awk cgi: move to make and sed static site generation

Diffstat:
MMakefile | 40+++++++++++++++++++++++-----------------
1 file changed, 23 insertions(+), 17 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,21 +1,27 @@ PREFIX = /var/www -HTDOCSDIR = /htdocs/pastanoggin.com +WEBDIR = ${PREFIX}/htdocs/pastanoggin.com -install: - install -o root -g bin -m 555 /usr/bin/awk ${DESTDIR}${PREFIX}/bin - install -d -o root -g daemon ${DISTDIR}${PREFIX}/usr/lib - install -o root -g bin -m 444 /usr/lib/libm.so.* ${DESTDIR}${PREFIX}/usr/lib - install -o root -g bin -m 444 /usr/lib/libc.so.* ${DESTDIR}${PREFIX}/usr/lib - install -d -o root -g daemon ${DISTDIR}${PREFIX}/usr/libexec - install -o root -g bin -m 555 /usr/libexec/ld.so ${DESTDIR}${PREFIX}/usr/libexec - install -d ${DESTDIR}${PREFIX}/cgi-bin - install -o root -g bin awk.cgi ${DESTDIR}${PREFIX}/cgi-bin - install -d ${DESTDIR}${PREFIX}${HTDOCSDIR}/docs - install docs/* ${DESTDIR}${PREFIX}${HTDOCSDIR}/docs - install -d ${DESTDIR}${PREFIX}${HTDOCSDIR}/img - install img/* ${DESTDIR}${PREFIX}${HTDOCSDIR}/img - install -d ${DESTDIR}${PREFIX}${HTDOCSDIR}/style - install style/* ${DESTDIR}${PREFIX}${HTDOCSDIR}/style +PAGES = index.html me.html contact.html blog.html links.html + +all: ${PAGES} + +.SUFFIXES: .in .html +.in.html: status.in + ./templ $< $@ + +clean: + rm -f *.html + +install: all + install ${PAGES} ${DESTDIR}${WEBDIR} + install -d ${DESTDIR}${WEBDIR}/img + install img/* ${DESTDIR}${WEBDIR}/img + install -d ${DESTDIR}${WEBDIR}/style + install style/* ${DESTDIR}${WEBDIR}/style uninstall: - rm -f ${DESTDIR}${PREFIX}/cgi-bin/awk.cgi + (cd ${DESTDIR}${WEBDIR}; rm -f ${PAGES}) + rm -fr ${DESTDIR}${WEBDIR}/img + rm -fr ${DESTDIR}${WEBDIR}/style + +.PHONY: all clean install uninstall