-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (23 loc) · 796 Bytes
/
Makefile
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
29
30
31
32
CC = elm
build = build/
runtime = elm/elm-runtime.js
examples=Examples/
flags = --make --set-runtime=$(runtime) --build-dir=$(build) --src-dir=$(examples)
all: compile
compile: build/elm/ build/Playground.js
examples: build/elm/ build/Demo.html build/Mario.html build/Increment.html
build/Increment.html:Examples/Increment.elm build/Playground.js
$(CC) $(flags) Increment.elm
build/Demo.html:Examples/Demo.elm build/Playground.js
$(CC) $(flags) Demo.elm
build/elm:elm/
cp elm/ build/ -r
build/Playground.js:Playground.elm Internal.elm Playground/Input.elm
$(CC) $(flags) -o Playground.elm
build/Mario.html:Examples/Mario.elm build/Playground.js
$(CC) $(flags) Mario.elm
clean: build
find . -name "*~" -type f -delete
find . -name "#*" -type f -delete
rm build -rf
rm cache -rf