-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
39 lines (30 loc) · 804 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
.PHONY: install_runner_aliases deps_py deps_js deps postgres test clean
install_runner_aliases:
for runner in \
~/code/puller/ensure_puller_running.sh \
~/code/abacus/ensure_abacus_running.sh \
~/code/abacus/ensure_all_running.sh \
~/code/abacus/ensure_frontend_running.sh \
; do \
if ! command -v $$(basename $$runner) >/dev/null 2>&1 ; then \
cp -s $$runner /usr/bin \
; fi \
done
venv:
virtualenv venv
deps_py: venv
# "Making python dependencies"
venv/bin/pip install -r requirements.txt
deps_js: frontend/package.json
# "Making javascript dependencies"
npm install --prefix ~/code/abacus/frontend
deps: deps_py deps_js
postgres:
venv/bin/python database.py
clean:
rm -rf venv/
rm -rf frontend/node_modules/
test:
venv/bin/python tests.py
api_debug:
./start.sh 1