-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (33 loc) · 1007 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
38
39
40
41
42
43
PROJECT_NAME = #Project name here
MAKE := make
.PHONY: all clean run serve update update_pip update_bower makemigrations \
migrate setup
all: update makemigrations migrate run
run:
python manage.py runserver
serve:
python manage.py runserver 0.0.0.0:8000
update: update_pip update_bower
update_pip:
@echo 'Installing Python requirements'
@echo '------------------------------'
pip install -r requirements.txt
update_bower:
@echo 'Install static dependencies'
@echo '---------------------------'
bower install
makemigrations:
@echo 'Creating migrations for all apps'
@echo '------------------------------'
python manage.py makemigrations
migrate:
@echo 'Running migrations'
@echo '------------------'
python manage.py migrate
setup: update
@echo 'Copying settings example'
@echo '------------------------'
cp $(PROJECT_NAME)/settings/local.py.example \
$(PROJECT_NAME)/settings/local.py
$(MAKE) migrate
@echo '$(PROJECT_NAME) is ready. make run to start development server.'