-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (33 loc) · 879 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
44
45
46
47
.PHONY: all client pep8 env db dist install collectstatic
all: env db dist
# https://gist.github.com/isaacs/579814
# ways of node.js and npm installation
CLIENT=./atmusers/client
STATIC=./static
pep8:
source env/bin/activate && \
pep8 . --exclude="env,node_modules,migrations"
env:
virtualenv-2.7 env && \
source env/bin/activate && \
pip install -r requirements.txt
db:
source env/bin/activate && \
python manage.py makemigrations && \
python manage.py migrate && \
python manage.py loaddata db.dump.demo.json
client:
make -C $(CLIENT) dist
collectstatic:
source env/bin/activate && \
python manage.py collectstatic --ignore node_modules --ignore bower_components
dist: client collectstatic
install:
make env db && \
make -C $(CLIENT) env && \
make dist
clean:
rm -rf env
rm -f *.sqlite3
rm -rf $(STATIC)/*
make -C $(CLIENT) distclean