all: build clean: @mkdir -p output @rm -rf output/* build_fonts: clean @pyftsubset assets/iosevka-term-ss09-regular.ttf \ --text-file='assets/glyphs.txt' \ --layout-features+=ss09,dlig \ --flavor='woff2' \ --output-file='output/iosevka-term-ss09-regular.woff2' @pyftsubset assets/iosevka-term-ss09-bold.ttf \ --text-file='assets/glyphs.txt' \ --layout-features+=ss09,dlig \ --flavor='woff2' \ --output-file='output/iosevka-term-ss09-bold.woff2' build_sass: clean @sassc assets/style.scss | node_modules/.bin/csso > output/style.css build_content: clean @scripts/build_content.sh copy_static: clean @cp -r static/* output/ build: build_fonts build_sass build_content copy_static # @pigz -R -k -9 -- `find output -type f -iregex '.*\\.\\(css\\|js\\|json\\|html\\|xml\\|txt\\|svg\\|ico\\)'` watch_sass: build @scripts/watch_sass.sh watch_content: build @scripts/watch_content.sh watch: watch_sass watch_content serve_only: build @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