~schooltool-owners/schooltool.gradebook/2.6

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Gediminas Paulauskas
  • Date: 2013-02-25 17:12:53 UTC
  • Revision ID: menesis@pov.lt-20130225171253-6b40ev21iqgxjl4j
Local buildout.cfg and other build improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
        virtualenv --no-site-packages -p $(PYTHON) python
22
22
 
23
23
.PHONY: bootstrap
24
 
bootstrap bin/buildout: python
 
24
bootstrap bin/buildout: | buildout.cfg python
25
25
        python/bin/python bootstrap.py
26
26
 
 
27
buildout.cfg:
 
28
        cp deploy.cfg buildout.cfg
 
29
 
27
30
.PHONY: buildout
28
 
buildout .installed.cfg: python bin/buildout buildout.cfg base.cfg setup.py
 
31
buildout .installed.cfg: python bin/buildout buildout.cfg base.cfg deploy.cfg setup.py
29
32
        bin/buildout $(BUILDOUT_FLAGS)
30
33
 
 
34
.PHONY: develop
 
35
develop bin/coverage: buildout.cfg develop.cfg
 
36
        sed -e 's/base.cfg/develop.cfg/' -i buildout.cfg
 
37
        $(MAKE) buildout
 
38
 
31
39
.PHONY: update
32
40
update:
33
41
        bzr up
42
50
 
43
51
.PHONY: tags
44
52
tags: build
45
 
        bin/tags
 
53
        bin/ctags
46
54
 
47
55
.PHONY: clean
48
56
clean:
57
65
 
58
66
.PHONY: realclean
59
67
realclean:
 
68
        rm -f buildout.cfg
60
69
        rm -rf eggs
61
70
        rm -rf dist
62
71
        rm -rf instance
84
93
        bin/test --at-level 2 -u --coverage=$(CURDIR)/coverage
85
94
 
86
95
.PHONY: coverage-reports-html
87
 
coverage-reports-html coverage/reports: build
 
96
coverage-reports-html coverage/reports: bin/coverage build
88
97
        test -d coverage || $(MAKE) coverage
89
98
        rm -rf coverage/reports
90
99
        mkdir coverage/reports
97
106
        bin/test --at-level 2 -f --coverage=$(CURDIR)/ftest-coverage
98
107
 
99
108
.PHONY: ftest-coverage-reports-html
100
 
ftest-coverage-reports-html ftest-coverage/reports: build
 
109
ftest-coverage-reports-html ftest-coverage/reports: bin/coverage build
101
110
        test -d ftest-coverage || $(MAKE) ftest-coverage
102
111
        rm -rf ftest-coverage/reports
103
112
        mkdir ftest-coverage/reports
131
140
 
132
141
.PHONY: release
133
142
release: compile-translations
 
143
        -cp buildout.cfg buildout.cfg~dev~
 
144
        cp deploy.cfg buildout.cfg
134
145
        grep -qv 'dev' version.txt.in || echo -n `cat version.txt.in`-r`bzr revno` > version.txt
135
146
        $(PYTHON) setup.py sdist
136
147
        rm -f version.txt
 
148
        -mv buildout.cfg~dev~ buildout.cfg
137
149
 
138
150
.PHONY: move-release
139
151
move-release: upload
158
170
.PHONY: ubuntu-environment
159
171
ubuntu-environment:
160
172
        sudo apt-get install bzr build-essential gettext enscript ttf-liberation \
161
 
            python-all-dev python-virtualenv \
 
173
            python-all-dev python-virtualenv ttf-ubuntu-font-family \
162
174
            libicu-dev libxslt1-dev libfreetype6-dev libjpeg62-dev
163
175