openbsd-webzine/issues/Makefile

34 lines
1.1 KiB
Makefile
Raw Normal View History

TEMPDIR=/tmp/openbsd-webzine/
generate-site: clean
2021-09-30 20:04:59 +00:00
ls | grep issue- | sort -n | xargs -n 1 tools/make_issue.sh
2021-09-29 16:47:42 +00:00
tools/make_issue.sh _index ../public/index.html
cp -fr _static/* ../public/
2021-09-29 16:47:42 +00:00
tools/sitemap.sh webzine.puffy.cafe ../public/ > ../public/sitemap.xml
gzip -9 -c ../public/sitemap.xml > ../public/sitemap.gz
2021-09-29 16:47:42 +00:00
tools/atom.sh webzine.puffy.cafe > ../public/atom.xml
2021-09-29 17:29:17 +00:00
xmllint -format ../public/atom.xml
all: generate-site
clean:
2021-09-29 19:09:55 +00:00
rm -fr ../dev/*html ../public/*
test:
mkdir -p ${TEMPDIR}
2021-09-29 16:52:37 +00:00
tools/make_issue.sh current ${TEMPDIR}/current-issue.html
xdg-open ${TEMPDIR}/current-issue.html
# only difference with generate-site is make_issue.sh -t
testsite: clean
2021-09-30 20:04:59 +00:00
ls | grep issue- | sort -n | xargs -n 1 tools/make_issue.sh -t
2021-09-29 16:52:37 +00:00
tools/make_issue.sh _index ../public/index.html
cp -fr _static/* ../public/
tools/sitemap.sh webzine.puffy.cafe ../public/ > ../public/sitemap.xml
gzip -9 -c ../public/sitemap.xml > ../public/sitemap.gz
tools/atom.sh webzine.puffy.cafe > ../public/atom.xml
2021-09-29 17:29:17 +00:00
xmllint -format ../public/atom.xml
mkdir -p ${TEMPDIR}
cp -fr ../public ${TEMPDIR}/
xdg-open ${TEMPDIR}/public/index.html