-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite Makefile: do not include mod-wsgi-standalone package in defau…
…lt installation
- Loading branch information
Showing
2 changed files
with
18 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
objects = main.py roxy.py ferris.py wsgi.py | ||
objects = entrecote.py ferris.py main.py roxy.py wsgi.py | ||
|
||
.PHONY: install server wsgi config clean | ||
.PHONY: clean full-install install server wsgi wsgi-config wsgi-server | ||
|
||
install: requirements.txt | ||
python3 -m venv .venv | ||
. .venv/bin/activate | ||
.venv/bin/pip install --requirement requirements.txt | ||
.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: .venv/bin/mod_wsgi-express $(objects) | ||
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 | ||
|
||
config: .venv/bin/mod_wsgi-express | ||
wsgi-config: .venv/bin/mod_wsgi-express | ||
.venv/bin/mod_wsgi-express module-config | ||
|
||
clean: requirements.txt | ||
.venv/bin/pip uninstall --requirement requirements.txt | ||
.venv/bin/pip uninstall --requirement requirements.txt \ | ||
rm -r .venv \ | ||
rm -r .entrecote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters