File tree 1 file changed +15
-4
lines changed
1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -37,24 +37,35 @@ $(JS_FILES): %.js: src/%.ls
37
37
manifest ::
38
38
perl -pi -e ' s/# [A-Z].*\n/# @{[`date`]}/m' manifest.appcache
39
39
40
- ./node_modules/streamline/bin/_node :
40
+ ./node_modules/streamline/bin/_node \
41
+ ./node_modules/uglify-js/bin/uglifyjs :
41
42
npm i --dev
42
43
43
44
static/multi.js :: multi/main.ls multi/styles.styl
44
45
webpack --optimize-minimize
45
46
46
47
depends : app.js static/ethercalc.js static/start.css static/multi.js
47
48
48
- static/ethercalc.js : $(ETHERCALC_FILES ) ./node_modules/socialcalc/SocialCalc.js
49
- @-mkdir .git
49
+ static/ethercalc.js : $(ETHERCALC_FILES ) \
50
+ ./node_modules/socialcalc/SocialCalc.js \
51
+ ./node_modules/uglify-js/bin/uglifyjs
52
+ @-mkdir -p .git
50
53
@echo '// Auto-generated from "make depends"; ALL CHANGES HERE WILL BE LOST!' > $@
51
- node node_modules/zappajs/node_modules/. bin/uglifyjs node_modules/socialcalc/SocialCalc.js $(ETHERCALC_FILES ) $(UGLIFYJS_ARGS ) --source-map ethercalc.js.map --source-map-include-sources >> $@
54
+ node node_modules/uglify-js/ bin/uglifyjs node_modules/socialcalc/SocialCalc.js $(ETHERCALC_FILES) $(UGLIFYJS_ARGS) --source-map ethercalc.js.map --source-map-include-sources >> $@
52
55
mv ethercalc.js.map static
53
56
57
+ COFFEE := $(shell command -v coffee 2> /dev/null)
54
58
.coffee.js :
59
+ ifndef COFFEE
60
+ $(error "coffee is not available please install sass")
61
+ endif
55
62
coffee -c $<
56
63
64
+ SASS := $(shell command -v sass 2> /dev/null)
57
65
.sass.css :
66
+ ifndef SASS
67
+ $(error "sass is not available please install sass")
68
+ endif
58
69
sass -t compressed $< > $@
59
70
60
71
clean ::
You can’t perform that action at this time.
0 commit comments