Makefile 776 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

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

Florent Chehab's avatar
Florent Chehab committed
13
14
15
16
17
18
generate_frontend: generate_frontend_files
	npm run dev

build_frontend: generate_frontend_files
	npm run build

19
test_backend: generate_backend
20
	pytest general/ frontend/ backend/
21
22
23
24
25
26
27
28
29
30
31
32

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
33
	cd docs && $(MAKE) all
34
35

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