-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
80 lines (57 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
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
# Makefile for FootTrial.
# 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
CELERY = $(shell) $(SCRIPT_DIR)/celery.sh
CLEAN = $(shell) $(SCRIPT_DIR)/clean.sh
CLEAN_MIGRATIONS = $(shell) $(SCRIPT_DIR)/clean_migrations.sh
INSTALL = $(shell) $(SCRIPT_DIR)/install.sh
SETUP = $(shell) $(SCRIPT_DIR)/setup.sh
TEST = $(shell) $(SCRIPT_DIR)/test.sh
PM = $(shell) $(SCRIPT_DIR)/pm.sh
POPULATE = $(shell) $(SCRIPT_DIR)/populate.sh
POPULATE_TEST = $(shell) $(SCRIPT_DIR)/populate_test.sh
GVM = $(shell) $(SCRIPT_DIR)/gvm.sh
GRIP = $(shell) $(SCRIPT_DIR)/grip.sh
PYENV = $(shell) $(SCRIPT_DIR)/pyenv.sh
PLUGINS_VAGRANT = $(shell) $(SCRIPT_DIR)/plugins_vagrant.sh
RUNSERVER = $(shell) $(SCRIPT_DIR)/runserver.sh
TRANSLATE = $(shell) $(SCRIPT_DIR)/translate.sh
SYNC = $(shell) $(SCRIPT_DIR)/sync.sh
install:
$(INSTALL)
pm:
echo "${action}"
@if [ "${action}" == '' ]; then \
echo "Error: Variables not set correctly"; exit 2; \
fi
$(PM) "${action}"
populate:
$(POPULATE)
populate_test:
$(POPULATE_TEST)
plugins_vagrant:
$(PLUGINS_VAGRANT)
clean:
$(CLEAN)
clean_migrations: clean
$(CLEAN_MIGRATIONS)
celery:
$(CELERY)
environment:
$(PYENV)
$(GVM)
grip:
$(GRIP)
setup:
$(SETUP)
runserver:
@if [ "${env}" == '' ]; then \
echo "Error: Variables not set correctly"; exit 2; \
fi
$(RUNSERVER) "${env}"