forked from crossbario/autobahn-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (34 loc) · 1.03 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
.PHONY: clean test build_browser build_npm publish_browser publish_npm
default:
@echo "Targets:"
@echo " - clean Clean the build"
@echo " - test Run all unit tests"
@echo " - build_browser Build browser version of the library"
@echo " - build_npm NOOP (there is nothing to prebuild here)"
@echo " - publish_browser Publish the browser version of the library"
@echo " - publish_npm Publish the npm version of the library"
clean:
rm -rf build
rm -rf ./node_modules
rm -f .sconsign.dblite
requirements:
pip install scons boto taschenmesser
build: build_browser build_npm
build_browser:
scons
build_npm:
@echo "Ok, npm doesn't need a build step"
publish: publish_browser publish_npm
publish_browser:
scons publish
git -C ../autobahn-js-built pull
cp ./build/* ../autobahn-js-built
@echo "Now commit and push autobahn-js-built!"
publish_npm:
npm publish
test:
npm test
test_connect:
nodeunit test/test_connect.js
test_msgpack_serialization:
nodeunit test/test_msgpack_serialization.js