Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,18 @@ static/multi.js :: multi/main.ls multi/styles.styl

depends: app.js static/ethercalc.js static/start.css static/multi.js

node_modules/socialcalc/dist/SocialCalc.js: ./node_modules/streamline/bin/_node
node_modules/socialcalc/dist/SocialCalc.js:
@-mkdir -p node_modules/socialcalc/dist
cp node_modules/socialcalc/SocialCalc.js node_modules/socialcalc/dist/SocialCalc.js || true

static/ethercalc.js: $(ETHERCALC_FILES) \
./node_modules/socialcalc/dist/SocialCalc.js \
./node_modules/uglify-js/bin/uglifyjs
@-mkdir -p .git
@echo '// Auto-generated from "make depends"; ALL CHANGES HERE WILL BE LOST!' > $@
node node_modules/uglify-js/bin/uglifyjs node_modules/socialcalc/dist/SocialCalc.js $(ETHERCALC_FILES) $(UGLIFYJS_ARGS) --source-map ethercalc.js.map --source-map-include-sources >> $@
mv ethercalc.js.map static
@echo '// Auto-generated from "make depends"; ALL CHANGES HERE WILL BE LOST!' > ethercalc.js.tmp
node node_modules/uglify-js/bin/uglifyjs node_modules/socialcalc/dist/SocialCalc.js $(ETHERCALC_FILES) $(UGLIFYJS_ARGS) --source-map --output ethercalc.js.tmp
mv ethercalc.js.tmp $@
mv ethercalc.js.tmp.map static/ethercalc.js.map

COFFEE := $(shell command -v coffee 2> /dev/null)
.coffee.js:
Expand Down
Loading