diff options
| author | lemurianmage <azureazure@disroot.org> | 2026-05-31 00:17:31 +0200 |
|---|---|---|
| committer | lemurianmage <azureazure@disroot.org> | 2026-05-31 00:17:31 +0200 |
| commit | cf102ad6c7d171dd500cae8b419b7f5c1e796ab4 (patch) | |
| tree | fc9c143c3f31b91aebf31d91e6a0e0960da15fc6 /makefile | |
| parent | 226c628caaa2fc393010c2fa948ec0c5d7664115 (diff) | |
| download | slimegirl.nexus-cf102ad6c7d171dd500cae8b419b7f5c1e796ab4.tar.gz | |
make instead of shell scripts
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..d356503 --- /dev/null +++ b/makefile @@ -0,0 +1,28 @@ +# this fucking sucks lol + +all: build + +serve: + xdg-open http://localhost:8000/ + python3 -m http.server -d public/ + +watch: + find src/ templates/ -type f | entr make build + +build: # shit breaks when index.org doesnt exist idk why + [ -f src/blog/index.org ] || touch src/blog/index.org + @mkdir -p public/ + emacs -Q --script build-site.el + +compress: build # for gzip-static, check the obsd httpd.conf(5) man page + find public/ -type f \( -name "*.html" -o -name "*.css" -o -name "*.xml" \) \ + -exec gzip -k {} \; + +publish: compress build + rsync -rcvP --delete public/ \ + lemurianmage@slimegirl.nexus:/var/www/htdocs/slimegirl.nexus + +clean: + rm -r public/ + +.PHONY: serve watch build compress publish clean |
