Permalink
Browse files

Add makefile - so that `make test_server` brings up a test server, as…

… for sockjs-node

This is generally a good practice and would be cool if all sockjs servers had a test_server easily runnable. But it's nothing of a significant value, feel free to trash it.
  • Loading branch information...
1 parent 053ff11 commit 2e261eae435567db0d4cfde366a136a3569ebbc8 @majek majek committed Dec 19, 2011
Showing with 28 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +27 −0 Makefile
View
@@ -8,3 +8,4 @@ build
source/_static*
source/_templates*
make.bat
+venv
View
@@ -0,0 +1,27 @@
+PYTHON=python
+
+#### General
+
+all:
+ $(PYTHON) setup.py build
+
+clean:
+ rm -rf venv
+ find . -name \*.pyc | xargs --no-run-if-empty rm
+
+#### Dependencies
+
+test_deps: venv/.test_deps
+
+venv:
+ virtualenv venv
+ -rm distribute-*.tar.gz || true
+
+venv/.test_deps: venv
+ ./venv/bin/pip install tornado
+ touch venv/.test_deps
+
+#### Development
+
+test_server: test_deps
+ PYTHONPATH=$(PWD) ./venv/bin/python examples/test/test.py

0 comments on commit 2e261ea

Please sign in to comment.