svg.escobar.life

A simple SVG markup editor for the web

Makefile (530B)

 1 .PHONY: runserver build auto-compile
 2 
 3 build:
 4 	elm make --optimize --output=/tmp/elm-script.js src/Main.elm
 5 	uglifyjs --compress --mangle -o _site/js/script.min.js -- /tmp/elm-script.js
 6 	rm /tmp/elm-script.js
 7 	cp --verbose index.html manifest.json css assets _site/ -r
 8 	cp --verbose js/* _site/js/
 9 
10 runserver:
11 	cd _site && python3 -m http.server
12 
13 auto-compile:
14 	find '.' -name '*.elm' -or -name '*.js' -or -name '*.css' -or -name '*.svg' \
15 			 -or -name manifest.json -or -name index.html -or -name Makefile \
16 		| entr make build
17