-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (34 loc) · 1019 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# convenience makefile to boostrap & run buildout
version = 2.7
python = bin/python
config = nhn-dev.cfg
buildout_options =
all: rebuild
docs: htdocs/sphinx
htdocs/sphinx: bin/sphinx-build docs/*.rst docs/conf.py
bin/sphinx-build docs $@
bin/sphinx-build: .installed.cfg
rebuild: .installed.cfg
bin/buildout $(buildout_options)
.installed.cfg: buildout.cfg bin/buildout
bin/buildout $(buildout_options)
buildout.cfg:
ln -s $(config) buildout.cfg
bin/buildout: buildout.cfg bootstrap.py
$(python) bootstrap.py -d
@touch bin/buildout
site: .installed.cfg
bin/supervisorup ejabberd
bin/supervisordown instance
bin/instance create_site --rootpassword admin
fresh-site: .installed.cfg
bin/supervisorup ejabberd
bin/supervisordown instance
bin/instance create_site --force --rootpassword admin
clean:
rm -rf .installed.cfg .mr.developer.cfg \
downloads develop-eggs eggs fake-eggs parts docs/.build
dist-clean: clean
rm -rf bin/buildout
git clean -x bin
.PHONY: all $(cfgs) rebuild docs clean