-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 716 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.DEFAULT_GOAL := all
elm = ./node_modules/.bin/elm
gh-pages = ./node_modules/.bin/gh-pages
uglifyjs = ./node_modules/.bin/uglifyjs
all: dist/ dist/elm.js dist/index.html dist/favicon.ico
dist/:
mkdir -p $@
dist/elm.js: $(shell find src -type f) package.json elm.json
$(elm) make src/Main.elm --output $@
dist/index.html: src/index.html
cp src/index.html dist/
dist/favicon.ico: ./favicon.ico
cp ./favicon.ico dist/
deploy: all
$(uglifyjs) dist/elm.js --compress 'pure_funcs="F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9",pure_getters,keep_fargs=false,unsafe_comps,unsafe' | $(uglifyjs) --mangle --output dist/elm.js
$(gh-pages) --dist dist
clean:
rm -Rf elm-stuff
rm -Rf node_modules
rm -Rf dist