🛠 Add dev make rules

This commit is contained in:
Dan Jones 2023-01-02 16:44:22 -06:00
commit 77649a5c71

View file

@ -1,11 +1,19 @@
ifndef dev
sass_opts = --no-source-map --style=compressed
endif
.PHONY: all
all: build/index.html build/style.css
.PHONY: clean
clean:
rm -v build/index.html build/style.css*
build/index.html: index.html config.toml compile.js
node compile.js
build/style.css: scss/style.scss node_modules/bootstrap/scss/_root.scss
npx sass --no-source-map --style=compressed $< $@
npx sass $(sass_opts) $< $@
node_modules/bootstrap/scss/_root.scss: package-lock.json
npm ci