-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
29 lines (20 loc) · 786 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
objects = entrecote.py ferris.py main.py roxy.py wsgi.py
.PHONY: clean full-install install server wsgi wsgi-config wsgi-server
.entrecote:
mkdir -p .entrecote
.venv:
python3 -m venv .venv
install: .entrecote .venv requirements.txt
.venv/bin/pip install `grep --invert-match mod-wsgi-standalone requirements.txt`
server: .venv/bin/python3 $(objects)
.venv/bin/python3 main.py
wsgi: install requirements.txt
.venv/bin/pip install `grep mod-wsgi-standalone requirements.txt`
wsgi-server: .venv/bin/mod_wsgi-express $(objects)
.venv/bin/mod_wsgi-express start-server wsgi.py
wsgi-config: .venv/bin/mod_wsgi-express
.venv/bin/mod_wsgi-express module-config
clean: requirements.txt
.venv/bin/pip uninstall --requirement requirements.txt \
rm -r .venv \
rm -r .entrecote