-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (40 loc) · 1.1 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
PYTHON = python2.7
PASTERARGS =
scripts = bin/test bin/python bin/paster
.PHONY: default
default: all
.PHONY: help
help:
@echo "make -- build everything that needs building"
@echo "make test -- run all tests"
@echo "make debug-run -- run server in foreground mode"
@echo "make run -- run server in foreground mode"
@echo "make start -- start server in the background"
@echo "make stop -- stop server"
.PHONY: all
all: $(scripts)
.PHONY: debug-run
debug-run: run-prereqs
bin/paster serve debug.ini $(PASTERARGS)
.PHONY: run
run: run-prereqs
bin/paster serve deploy.ini $(PASTERARGS)
.PHONY: start
start: run-prereqs
bin/paster serve deploy.ini --daemon $(PASTERARGS)
.PHONY: stop
stop: run-prereqs
bin/paster serve deploy.ini --stop-daemon $(PASTERARGS)
.PHONY: test
test: test-prereqs
bin/test -c 2>&1 | less -RFX
.PHONY: run-prereqs
run-prereqs: bin/paster
.PHONY: test-prereqs
test-prereqs: bin/test
bin/buildout: bootstrap.py
$(PYTHON) bootstrap.py
touch -c bin/buildout
$(scripts): bin/buildout buildout.cfg setup.py .git/HEAD
bin/buildout -N
touch -c $(scripts)