all: build clean: @mkdir -p output @rm -rf output/* build_fonts: clean @scripts/build_fonts.sh build_sass: clean @scripts/build_sass.sh build_content: clean @scripts/build_content.sh build_only: build_fonts build_sass build_content compress_gz: build_only @echo "[COMPRESS] Gzip" @pigz -R -k -9 -- `find output -type f -iregex '.*\\.\\(css\\|js\\|json\\|html\\|xml\\|txt\\|svg\\|ico\\)'` compress_br: build_only @echo "[COMPRESS] Brotli" @brotli -k -- `find output -type f -iregex '.*\\.\\(css\\|js\\|json\\|html\\|xml\\|txt\\|svg\\|ico\\|woff\\)'` build: compress_gz compress_br watch_sass: build_only @scripts/watch_sass.sh watch_content: build_only @scripts/watch_content.sh watch_templates: build_only @scripts/watch_templates.sh watch_metadata: build_only @scripts/watch_metadata.sh watch: watch_sass watch_content watch_templates watch_metadata serve_only: build_only @python -m http.server --bind 127.0.0.1 --directory output serve: watch serve_only deploy: build @rsync --progress --stats -avz --delete output/ vulpes@94.130.78.123:/srv/http/volpeon.ink/ .PHONY: all clean build watch serve deploy