forked from lexzheng/walis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (31 loc) · 869 Bytes
/
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
# vim:set noet:
.PHONY: help server test
help:
@echo 'Usage:'
@echo ' make server serve walis on port 3000'
@echo ' make client run whelper client'
@echo ' make test run unitests'
@echo ' make install install walis as a package'
@echo ' make lint run pylint'
server:
python walis/server.py
thrift_server:
python -m walis.thrift.server
client:
python walis/helper.py
lint:
flake8 walis
test:
find . -name '*.pyc' -delete
py.test tests/units -vvv -x
requirements:
pip install -r dev_requirements.txt --download-cache /tmp/pip_eleme
develop: requirements config log
python setup.py -q develop
@echo "Build develop environment finished."
log:
if [ ! -d "/var/log/walis" ]; then sudo mkdir -p /var/log/walis; fi
sudo chmod -R og+w /var/log/walis
config:
python genconfig.py --force_cover
all: develop