forked from audreyt/ethercalc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
66 lines (50 loc) · 1.73 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
SOCIALCALC_FILES=\
socialcalcconstants.js \
socialcalc-3.js \
socialcalctableeditor.js \
formatnumber2.js \
formula1.js \
socialcalcpopup.js \
socialcalcspreadsheetcontrol.js \
socialcalcviewer.js
ETHERCALC_FILES=\
third-party/class-js/lib/Class.js \
third-party/wikiwyg/lib/Document/Emitter.js \
third-party/wikiwyg/lib/Document/Emitter/HTML.js \
third-party/wikiwyg/lib/Document/Parser.js \
third-party/wikiwyg/lib/Document/Parser/Wikitext.js \
static/jquery.js \
static/vex.combined.min.js
JS_FILES=\
app.js dotcloud.js player.js main.js sc.js db.js
all :: depends
env PATH="$$PATH:./node_modules/livescript/bin" lsc -c -o . src
node app.js $(ETHERCALC_ARGS) --cors
manifest ::
perl -pi -e 's/# [A-Z].*\n/# @{[`date`]}/m' manifest.appcache
vm :: SocialCalcModule.js
env PATH="$$PATH:./node_modules/livescript/bin" lsc -c -o . src
node app.js --vm $(ETHERCALC_ARGS)
expire :: SocialCalcModule.js
env PATH="$$PATH:./node_modules/livescript/bin" lsc -c -o . src
node app.js --expire 10 $(ETHERCALC_ARGS)
./node_modules/streamline/bin/_node :
npm i --dev
static/multi.js :: multi/main.ls multi/styles.styl
webpack --optimize-minimize
depends :: app.js static/ethercalc.js static/start.css static/multi.js
SocialCalcModule.js :: $(SOCIALCALC_FILES) exports.js
cat $(SOCIALCALC_FILES) exports.js > $@
static/ethercalc.js: $(ETHERCALC_FILES) SocialCalcModule.js
@-mkdir .git
@echo '// Auto-generated from "make depends"; ALL CHANGES HERE WILL BE LOST!' > $@
node node_modules/zappajs/node_modules/uglify-js/bin/uglifyjs $(SOCIALCALC_FILES) $(ETHERCALC_FILES) -c -m >> $@
.coffee.js:
coffee -c $<
.sass.css:
sass -t compressed $< > $@
clean ::
@-rm $(JS_FILES)
push ::
dotcloud push ethercalc
.SUFFIXES: .js .coffee .css .sass .ls