-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (24 loc) · 827 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
.PHONY = init install clean test venv
bin/buildout=bin/buildout -Nt 4
bin/instance=bin/instance fg
venv:
@if test -f bin/python; then echo "Virtualenv already created"; \
else virtualenv-2.7 --no-setuptools . ; fi
bootstrap:
@if test -f 'bootstrap.py'; then echo "bootstrap.py already downloaded"; \
else wget http://downloads.buildout.org/2/bootstrap.py; fi
@if test -f 'bin/buildout'; then echo "bin/buildout already generated"; \
else bin/python bootstrap.py; fi
buildoutcfg:
@if test -f 'buildout.cfg'; \
then echo "There is a buildout.cfg"; \
else ln -s dev.cfg buildout.cfg; fi
start:
$(bin/instance)
install: venv buildoutcfg bootstrap
$(bin/buildout)
test: install
bin/test
clean:
rm -rf include bin parts lib develop-eggs
rm -f .buildout.cfg .installed.cfg .mr.developer.cfg bootstrap.py