-
Notifications
You must be signed in to change notification settings - Fork 30
/
Makefile
54 lines (46 loc) · 1.68 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
ELMMAKE=elm-make
# for locally-modified Elm compiler, create a symlink to something like:
# /PATH/TO/elm-make/.stack-work/install/x86_64-osx/lts-3.22/7.10.2/bin/elm-make
all:
$(ELMMAKE) Main.elm --output ../build/out/sns.js
html:
$(ELMMAKE) Main.elm --output ../build/out/sns.js
cp Native/aceCodeBox.js ../build/out/
cp Native/aceTooltips.js ../build/out/
cp Native/animationLoop.js ../build/out/
cp ../ace-builds/src/ace.js ../build/out/
cp ../ace-builds/src/mode-little.js ../build/out/
cp ../ace-builds/src/theme-chrome.js ../build/out/
mkdir -p ../build/out/img
cp img/*svg ../build/out/img/
remove_build_artifacts:
rm -r elm-stuff/build-artifacts/0.*/user; rm -r ../tests/elm-stuff/build-artifacts/0.*/user; true
clean: remove_build_artifacts prelude examples html
prelude:
scripts/expandTemplate.py Prelude
examples:
scripts/expandTemplate.py Examples
loc:
wc -l \
Lang.elm LangSvg.elm \
LangParser2.elm LangUnparser.elm OurParser2.elm \
Types.elm Eval.elm ShapeWidgets.elm \
Solver.elm LocEqn.elm Sync.elm \
InterfaceModel.elm \
InterfaceView3.elm Layout.elm Canvas.elm \
InterfaceController.elm \
LangTools.elm LangTransform.elm ValueBasedTransform.elm \
Blobs.elm Draw.elm ExpressionBasedTransform.elm \
InterfaceStorage.elm Storage.elm \
Ace.elm AceCodeBox.elm Native/aceCodeBox.js \
AnimationLoop.elm Native/animationLoop.js \
Main.elm Config.elm \
Utils.elm Either.elm \
HtmlUtils.elm \
PreludeTemplate.elm ExamplesTemplate.elm \
ColorNum.elm Keys.elm
littleloc:
# wc -l ../examples/*
scripts/exampleStats.sh
scripts/exampleStats.sh | wc -l
scripts/exampleStats.sh | awk '{ sum += $$1 } END { print sum }'