svg.escobar.life

A simple SVG markup editor for the web

Makefile (542B)

      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 'src/*.elm' -or -name 'js/*' -or name 'css/*' \
     15 				 -or -name 'assets/*' -or -name manifest.json -or -name index.html \
     16 				 -or -name Makefile \
     17 		| entr make build
     18