-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
52 lines (38 loc) · 1.43 KB
/
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
44
45
46
47
48
49
50
51
52
# This is a comment.
# Important: You *must* indent using <TAB>s, not spaces.
#
# For more information, please see
# - https://www.gnu.org/software/make/manual/make.html
#
# General syntax:
# targets : prerequisites; recipes
# <TAB>recipe
#
# - Commands starting with
# "-" are ignoring their exit-code.
# "@" do not echo the command itself.
#
# - make starts a new shell process for each recipe line.
# Thus shell variables, even exported environment variables, cannot propagate upwards.
# Therefore better concatenate your multiline-commands with ";\" into a single line.
# include re-usable makefiles
-include .make/*.mk
.PHONY: install ## full initial installation
install: create-dirs create-dirs-extra dotenv-install poetry-install symlink-venv-dirs ipython-symlink-to-ip
.PHONY: create-dirs-extra ## create additional directories
create-dirs-extra:
.PHONY: install-dev ## development installation
install-dev: git-init precommit-install-hook install
.PHONY: prd-install-prd ## production installation
install-prd: create-dirs dotenv-install poetry-install
.PHONY: post-install ## post-install steps
post-install:
# bin/pip install -e var/src/<dependent-package>
.PHONY: create-dirs-extra ## create extra dirs
create-dirs-extra:
mkdir -p var/data
mkdir -p var/static
mkdir -p var/upload
.PHONY: create-demo-project ## create a demo project
create-demo-project:
cd var/tmp && bin/django-admin startproject demo1