svg.pablopie.xyz

A simple SVG markup editor for the web

NameSizeMode
..
Makefile 530B -rw-r--r--
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
.PHONY: runserver build auto-compile

build:
	elm make --optimize --output=/tmp/elm-script.js src/Main.elm
	uglifyjs --compress --mangle -o _site/js/script.min.js -- /tmp/elm-script.js
	rm /tmp/elm-script.js
	cp --verbose index.html manifest.json css assets _site/ -r
	cp --verbose js/* _site/js/

runserver:
	cd _site && python3 -m http.server

auto-compile:
	find '.' -name '*.elm' -or -name '*.js' -or -name '*.css' -or -name '*.svg' \
			 -or -name manifest.json -or -name index.html -or -name Makefile \
		| entr make build