Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Oberstein committed Nov 15, 2016
1 parent 9886936 commit acc3d0c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
31 changes: 15 additions & 16 deletions Makefile
@@ -1,27 +1,32 @@
.PHONY: clean build publish test
.PHONY: clean test build_browser build_npm publish_browser publish_npm

default:
@echo "Targets: clean, build, publish"
@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

build:
build_browser:
scons

publish:
build_npm:
@echo "Ok, nothing to build for npm!"

publish_browser:
scons publish
cp ./build/* ../autobahn-js-built
@echo "Now commit and push autobahn-js-built!"

closure_version:
java -jar ${JS_COMPILER} --version

requirements:
pip install -U scons scour taschenmesser boto

publish_npm:
npm publish

test:
npm test
Expand All @@ -31,9 +36,3 @@ test_connect:

test_msgpack_serialization:
nodeunit test/test_msgpack_serialization.js

dependencies:
npm update

publish_npm:
npm publish
3 changes: 2 additions & 1 deletion doc/building.md
Expand Up @@ -32,7 +32,8 @@ This will produce a file like `closure-compiler-v20161024.jar` in your `$HOME`.

Install library dependencies

sudo npm install -g ws when crypto-js msgpack-lite utf-8-validate
sudo npm install -g ws when crypto-js \
tweetnacl msgpack-lite int64-buffer bufferutil utf-8-validate

Set environment variables (add that to `$HOME/.profile`):

Expand Down

0 comments on commit acc3d0c

Please sign in to comment.