-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
85 lines (54 loc) · 1.22 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Makefile for cookiecutter-go-project.
# Configuration.
SHELL = /bin/bash
ROOT_DIR = $(shell pwd)
BIN_DIR = $(ROOT_DIR)/bin
DATA_DIR = $(ROOT_DIR)/var
SCRIPT_DIR = $(ROOT_DIR)/script
WGET = wget
# Bin scripts
ANSIBLE_PROVISION = $(shell) $(SCRIPT_DIR)/provision.sh
ANSIBLE_DEPLOY = $(shell) $(SCRIPT_DIR)/deploy.sh
CLEAN = $(shell) $(SCRIPT_DIR)/clean.sh
GRIP = $(shell) $(SCRIPT_DIR)/grip.sh
INSTALL = $(shell) $(SCRIPT_DIR)/install.sh
PYENV = $(shell) $(SCRIPT_DIR)/pyenv.sh
INSTALL = $(shell) $(SCRIPT_DIR)/install.sh
LINTCODE = $(shell) $(SCRIPT_DIR)/lintcode.sh
TEST = $(shell) $(SCRIPT_DIR)/test.sh
RUNSERVER = $(shell) $(SCRIPT_DIR)/runserver.sh
SYNC = $(shell) $(SCRIPT_DIR)/sync.sh
WATCH = $(shell) $(SCRIPT_DIR)/watch.sh
ansible_provision:
$(ANSIBLE_PROVISION)
ansible_deploy:
$(ANSIBLE_DEPLOY)
clean:
$(CLEAN)
deploy:
$(ANSIBLE_PROVISION)
$(ANSIBLE_DEPLOY)
distclean: clean
rm -rf $(ROOT_DIR)/lib
rm -rf $(ROOT_DIR)/*.egg-info
rm -rf $(ROOT_DIR)/demo/*.egg-info
environment:
$(PYENV)
$(INSTALL)
grip:
$(GRIP)
install:
$(INSTALL)
roles:
$(ROLES_ANSIBLE)
maintainer-clean: distclean
rm -rf $(BIN_DIR)
rm -rf $(ROOT_DIR)/lib/
lintcode:
$(LINTCODE)
sync:
$(SYNC)
watch:
$(WATCH)
test:
$(TEST)