Makefile 629 Bytes
Newer Older
1
2
3
4
5
6
7
# You need to have source the env before using the makefile
.PHONY: docs

install_backend:
	pip install -r requirements.txt --quiet

generate_backend:
Florent Chehab's avatar
Florent Chehab committed
8
	export PYTHONPATH=$$PWD ; python ./backend/generate/generate_backend_files.py
9

10
generate_frontend:
Florent Chehab's avatar
Florent Chehab committed
11
	export PYTHONPATH=$$PWD ; python ./frontend/generate/generate_frontend_files.py
12

13
14
15
16
17
18
19
20
21
22
23
24
25
26
test_backend: generate_backend
	pytest

test_backend_server:
	pytest -n 4 general/ frontend/ backend/ --cov-report html

check_backend: generate_backend
	./manage.py check

run_backend: generate_backend
	./manage.py runserver


docs:
Florent Chehab's avatar
Florent Chehab committed
27
	cd docs && $(MAKE) all
28
29

docs_clean:
Florent Chehab's avatar
Florent Chehab committed
30
	cd docs && $(MAKE) clean