noxz-sites

A collection of a builder and various scripts creating the noxz.tech sites
git clone https://noxz.tech/git/noxz-sites.git
Log | Files | README | LICENSE

Makefile
1include config.mk
2
3all: clean check
4	@echo building sites
5	@./build
6	@
7	@echo creating icons
8	@convert -density 1200 -resize 256x256 ./noxz.tech/pub/logo.black.svg ./noxz.tech/pub/logo.png
9	@convert -density 1200 -resize 256x256 ./git.noxz.tech/pub/logo.svg ./noxz.tech/git/pub/logo.png
10	@
11	@echo assembling tar archive '${ASSEMBLE_TAR}'
12	@./assemble "${ASSEMBLE_TAR}"
13
14check:
15	@./build check
16
17publish:
18	@echo publishing to web server...
19	@[ -f "${ASSEMBLE_TAR}" ] || { echo "'${ASSEMBLE_TAR}' is missing, must build first"; exit 1; }
20	@./publish "${ASSEMBLE_TAR}" "${PUBLISH_PATH}"
21
22clean:
23	@echo cleaning
24	@find ./noxz.tech/ -name '*.html' -type f -exec sh -ec 'rm "$$0"' {} \;
25	@find ./git.noxz.tech/ -name '*.html' -type f -exec sh -ec 'rm "$$0"' {} \;
26	@rm -rf ./noxz.tech/git
27	@rm -f noxz.tech/pub/logo.png
28	@rm -f noxz.tech/pub/sitemap.xml
29	@rm -f git.noxz.tech/pub/logo.png
30	@rm -f git.noxz.tech/pub/sitemap.xml
31	@rm -f "${ASSEMBLE_TAR}"
32
33clean-git:
34	@find ./git.noxz.tech/* -type d -prune ! -name "pub" -exec sh -ec 'rm -rf "$$0"' {} \;
35
36preview:
37	@echo trying to start web server at port 8000
38	@python -m http.server 8000 --directory ./noxz.tech
39
40.PHONY: all check publish clean clean-git preview