1 | js = $(shell find lib/ -name "*.js")
|
2 |
|
3 | all : dist/scxml.js dist/scxml.min.js
|
4 |
|
5 | dist/scxml.js : $(js)
|
6 | browserify -u optimist -o dist/scxml.js -s scxml -e lib/runtime/platform-bootstrap/node/index.js
|
7 |
|
8 | dist/scxml.min.js : dist/scxml.js
|
9 | uglifyjs dist/scxml.js > dist/scxml.min.js
|
10 |
|
11 | get-deps :
|
12 | npm install -g browserify uglifyjs
|
13 |
|
14 | clean :
|
15 | rm dist/*
|
16 |
|
17 | .PHONY : get-deps all clean
|