-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
67 lines (48 loc) · 1.91 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
55
56
57
58
59
60
61
62
63
64
65
66
67
FLAGS ?= --optimize
NODE_PATH ?= /usr/lib/node_modules
ACE_TAR ?= v1.4.11.tar.gz
ACE_URL ?= https://github.com/ajaxorg/ace-builds/archive
all: delete rename info groupinfo search plot cache formula pygmentize
delete:
elm make elm/Delete.elm $(FLAGS) --output tsview/tsview_static/delete_elm.js
rename:
elm make elm/Rename.elm $(FLAGS) --output tsview/tsview_static/rename_elm.js
info:
elm make elm/Tsinfo.elm $(FLAGS) --output tsview/tsview_static/tsinfo_elm.js
groupinfo:
elm make elm/Groupinfo.elm $(FLAGS) --output tsview/tsview_static/groupinfo_elm.js
search:
elm make elm/Search.elm $(FLAGS) --output tsview/tsview_static/search_elm.js
plot:
elm make elm/Plot.elm $(FLAGS) --output tsview/tsview_static/plot_elm.js
cache:
elm make elm/Cache.elm $(FLAGS) --output tsview/tsview_static/cache_elm.js
# now vendored in tsview_static
# tsview/tsview_static/ace:
# (cd tsview/tsview_static && curl -L -O $(ACE_URL)/$(ACE_TAR) && tar xzf $(ACE_TAR))
# touch tsview/tsview_static/ace
formula:
elm make elm/TsView/Formula/Main.elm $(FLAGS) --output tsview/tsview_static/formula_elm.js
pygmentize:
pygmentize -S default -f html -a .highlight > tsview/tsview_static/pygmentize.css
elm-test:
elm-test
elm-validation:
elm make --output elm/FormulaParserValidation/tsformula_elm_parser.js $(FLAGS) \
elm/FormulaParserValidation/Main.elm
# need : $ npm install -g csv-parse
validation: elm-validation
cd elm/FormulaParserValidation && \
NODE_PATH=$(NODE_PATH):. ./tsformula-elm-parser -s spec.json parse formula.csv
clean: cleanstuff cleanbuild
cleanstuff:
rm elm-stuff -rf
cleanbuild:
rm tsview/tsview_static/delete_elm.js -f
rm tsview/tsview_static/rename_elm.js -f
rm tsview/tsview_static/plot_elm.js -f
rm tsview/tsview_static/info_elm.js -f
rm tsview/tsview_static/search_elm.js -f
rm tsview/tsview_static/formula_elm.js -f
rm tsview/tsview_static/cache.js -f
rm elm/FormulaParserValidation/tsformula_elm_parser.js -f