-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
37 lines (27 loc) · 864 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
PYTHON_EXECUTABLE ?= /usr/bin/python3
REQUIREMENTS_FILE ?= requirements.txt
# Setup virtualenv if not already existing
bin/python:
virtualenv -p $(PYTHON_EXECUTABLE) .
bin/pip install -r $(REQUIREMENTS_FILE)
migrate: bin/python
bin/python fotogalleri/manage.py migrate
migrations: bin/python
bin/python fotogalleri/manage.py makemigrations
deploy: bin/python
bin/python fotogalleri/manage.py collectstatic -v0 --noinput
touch fotogalleri/fotogalleri/wsgi.py
# Development specific
serve: bin/python
bin/python fotogalleri/manage.py runserver 8888
shell: bin/python
bin/python fotogalleri/manage.py shell
test: bin/python
bin/python fotogalleri/manage.py test fotogalleri
lint: bin/python
bin/python -m pycodestyle --exclude=migrations fotogalleri
clean:
rm -rf build/ dist/ *.egg-info/ local/
clean-all:
$(MAKE) clean
rm -rf bin lib include