forked from intranett/intranett
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (41 loc) · 1.69 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
default: predepends devel
devel: bin/buildout
bin/buildout -c development.cfg
production: bin/buildout
[ -d develop-eggs ] && rm -rf develop-eggs || true
bin/buildout -c production.cfg -t 1
site: start
bin/supervisorctl stop instance
bin/instance create_site
bin/supervisorctl start instance
start:
bin/supervisord
stop:
bin/supervisorctl shutdown
clean:
@rm -f bin/* .installed.cfg .mr.developer.cfg
# @echo "To recompile PIL: remove all PIL* eggs from your eggs cache."
# @find src -type d -name "Paste*" | xargs rm -rf
# @echo "If you keep having problems, purge /var/tmp/dist/* and your eggs cache"
predepends: precise
precise: _check_apt
sudo apt-get install -y make gcc python2.7-dev libjpeg-dev zlib1g-dev python-setuptools wget jed git-core openssh-client
sudo apt-get install -y libpcre3-dev ruby-haml erlang
sudo easy_install virtualenv
# # for python tests
# sudo apt-get install python-profiler
# # for cmmi compilation - soelim
# apt-get install groff-base
### helper targets ###
bin/buildout: bin/python2.7
# @wget http://svn.zope.org/repos/main/zc.buildout/trunk/bootstrap/bootstrap.py
@bin/python2.7 bootstrap.py -dc development.cfg
# @rm bootstrap.*
## bin/easy_install distribute==0.6.19
## bin/easy_install zc.buildout==1.5.2
bin/python2.7:
@virtualenv --clear -p python2.7 --distribute .
_check_apt:
@grep 'restricted' /etc/apt/sources.list || ( echo 'Add to /etc/apt/sources.list: restricted universe multiverse'; exit 1 )
@grep 'universe' /etc/apt/sources.list || ( echo 'Add to /etc/apt/sources.list: restricted universe multiverse'; exit 1 )
@grep 'multiverse' /etc/apt/sources.list || ( echo 'Add to /etc/apt/sources.list: restricted universe multiverse'; exit 1 )