-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 840 Bytes
/
Makefile
File metadata and controls
25 lines (18 loc) · 840 Bytes
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
NIRUM ?= nirum
PYVENV ?= python3 -m venv
run-counter-server: counter-server/venv/bin/nirum-server
pushd counter-server/ && venv/bin/nirum-server -d 'counter_server:CounterImpl("/tmp/state")' && popd
test-counter-server: counter-server/venv/bin/nirum-server
pushd counter-server/ && venv/bin/python -m unittest tests.py && popd
repl-counter-server: counter-server/venv/bin/nirum-server
pushd counter-server/ && venv/bin/python && popd
counter-server/venv/bin/nirum-server: counter-server/venv/ counter-schema/out/
counter-server/venv/bin/pip install nirum-http nirum-wsgi
counter-server/venv/bin/pip install -e counter-schema/out/
counter-server/venv/:
$(PYVENV) counter-server/venv/
counter-schema/out/:
$(NIRUM) -t python -o counter-schema/out/ counter-schema/
clean:
rm -rf counter-schema/out/
rm -rf counter-server/venv/