Commit Diff
Commit:
00442e5327d388684d9ee8e43adb114b9380cae4
From:
Omar Polo <op@omarpolo.com>
Date:
Wed Aug 24 13:07:41 2022 UTC
Message:
add `gzip' target to recursively compress the generated pages should save some bandwith when used with httpd(8)' gzip-static; added as a makefile target for ease of memory.
commit - 52bed3af6f97d2fceb2a46b868bb87de965eb24d
commit + 00442e5327d388684d9ee8e43adb114b9380cae4
blob - aa55b3e1e0c399290c1ff10ac968f5bab247edac
blob + f213ae9153e0d5c44d1a0e89a264c0fe82d47711
--- Makefile
+++ Makefile
@@ -3,13 +3,16 @@ OUTDIR = www
MDIR = ${HOME}/Maildir/op/GoT
OUTDIR = www
-.PHONY: all dirs assets clean
+.PHONY: all gzip dirs assets clean
all: .mblaze dirs assets
mlist '${MDIR}' | mthread -r | \
${ENV} mscan -f '%R %I %i %16D <%64f> %128S' | \
${ENV} ./mexp | ${ENV} ./mkindex > ${OUTDIR}/index.html
+gzip:
+ gzip -kr ${OUTDIR}/
+
dirs:
mkdir -p ${OUTDIR}/mbox/
mkdir -p ${OUTDIR}/parts/
Omar Polo