1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
1 |
# This file modified from Zope3/Makefile
|
2 |
# Licensed under the ZPL, (c) Zope Corporation and contributors.
|
|
3 |
||
1770
by Canonical.com Patch Queue Manager
[trivial] Move to Python 2.4 |
4 |
PYTHON_VERSION=2.4 |
6061.16.1
by Curtis Hovey
Removed deprecation warning supression code. Updated ZCML, tests, and code to use |
5 |
PYTHON=python${PYTHON_VERSION} |
8234.1.2
by Gary Poster
checkpoint: this initial buildout variant has several parts working, including run, start, stop, and harness. |
6 |
WD:=$(shell pwd) |
7 |
PY=$(WD)/bin/py |
|
8 |
PYTHONPATH:=$(WD)/lib:$(WD)/lib/mailman:${PYTHONPATH} |
|
7675.288.1
by Michael Hudson
this seems to help testing against bzr.dev |
9 |
BUILDOUT_CFG=buildout.cfg |
4385.1.12
by Stuart Bishop
Remove unmaintainable profiled_ rules, switching to a variable that can be overridden on the command line |
10 |
VERBOSITY=-vv |
1716.1.49
by Christian Reis
Removing cruft from the main Makefile |
11 |
|
4385.1.12
by Stuart Bishop
Remove unmaintainable profiled_ rules, switching to a variable that can be overridden on the command line |
12 |
TESTFLAGS=-p $(VERBOSITY) |
1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
13 |
TESTOPTS= |
1716.1.49
by Christian Reis
Removing cruft from the main Makefile |
14 |
|
8942.1.1
by Francis J. Lacoste
Silenced bootstrap.py and buildout.py. |
15 |
SHHH=utilities/shhh.py |
1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
16 |
HERE:=$(shell pwd) |
1716.1.49
by Christian Reis
Removing cruft from the main Makefile |
17 |
|
6041.1.2
by Curtis Hovey
Moved configs/default => configs/development. |
18 |
LPCONFIG=development |
1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
19 |
|
5447.1.2
by Tom Haddon
Constant for shutdown and correct path locations |
20 |
MINS_TO_SHUTDOWN=15 |
21 |
||
6206.1.1
by Tim Penhey
Update development location changes. |
22 |
CODEHOSTING_ROOT=/var/tmp/bazaar.launchpad.dev |
23 |
||
7430.1.3
by Gavin Panella
Post-review changes, and a few others. |
24 |
BZR_VERSION_INFO = bzr-version-info.py |
25 |
||
7430.1.1
by Gavin Panella
Clean up the Makefile, including splittig the API doc task into three. |
26 |
WADL_FILE = lib/canonical/launchpad/apidoc/wadl-$(LPCONFIG).xml |
27 |
API_INDEX = lib/canonical/launchpad/apidoc/index.html |
|
6770.2.10
by Francis J. Lacoste
Hook documentation generation in Makefile. |
28 |
|
7459.4.7
by Francis J. Lacoste
Create javascript tree structure and add build integration. |
29 |
EXTRA_JS_FILES=lib/canonical/launchpad/icing/MochiKit.js \ |
7459.4.8
by Francis J. Lacoste
Automatically include the YUI dependencies. |
30 |
$(shell $(HERE)/utilities/yui-deps.py) \ |
7459.4.7
by Francis J. Lacoste
Create javascript tree structure and add build integration. |
31 |
lib/canonical/launchpad/icing/lazr/build/lazr.js |
32 |
||
63.1.71
by Robert Collins
do not make check by default "make" invocation |
33 |
# DO NOT ALTER : this should just build by default
|
34 |
default: inplace |
|
1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
35 |
|
6206.1.1
by Tim Penhey
Update development location changes. |
36 |
schema: build clean_codehosting |
3024.1.1
by Christian Reis
You can't make schema without make building, so make it mandatory. Patch by Matt Zimmerman <mdz@canonical.com> |
37 |
$(MAKE) -C database/schema |
7430.1.1
by Gavin Panella
Clean up the Makefile, including splittig the API doc task into three. |
38 |
$(RM) -r /var/tmp/fatsam |
1716.1.42
by Christian Reis
merged and unconflicted |
39 |
|
1716.5.35
by kiko
Add for convenience a newsampledata proxy target to the main Makefile. |
40 |
newsampledata: |
41 |
$(MAKE) -C database/schema newsampledata |
|
42 |
||
8357.5.14
by Gary Poster
adjust Makefile primarily to make check_merge pass even if _pythonpath.py has changed |
43 |
hosted_branches: $(PY) |
8234.1.2
by Gary Poster
checkpoint: this initial buildout variant has several parts working, including run, start, stop, and harness. |
44 |
$(PY) ./utilities/make-dummy-hosted-branches |
45 |
||
7430.1.3
by Gavin Panella
Post-review changes, and a few others. |
46 |
$(WADL_FILE): $(BZR_VERSION_INFO) |
8234.1.2
by Gary Poster
checkpoint: this initial buildout variant has several parts working, including run, start, stop, and harness. |
47 |
LPCONFIG=$(LPCONFIG) $(PY) ./utilities/create-lp-wadl.py > $@ |
7430.1.1
by Gavin Panella
Clean up the Makefile, including splittig the API doc task into three. |
48 |
|
8357.5.2
by Gary Poster
incremental changes to using more eggs |
49 |
$(API_INDEX): $(WADL_FILE) |
50 |
bin/apiindex $(WADL_FILE) > $@ |
|
7430.1.1
by Gavin Panella
Clean up the Makefile, including splittig the API doc task into three. |
51 |
|
7430.1.3
by Gavin Panella
Post-review changes, and a few others. |
52 |
apidoc: compile $(API_INDEX) |
6770.2.11
by Francis J. Lacoste
Don't automatically generate the documentation until IS deploys the packages. |
53 |
|
5114.3.1
by Michael Hudson
add the target |
54 |
check_loggerhead_on_merge: |
5114.3.2
by Michael Hudson
try again |
55 |
# Loggerhead doesn't depend on anything else in rocketfuel and nothing
|
56 |
# depends on it (yet).
|
|
5114.3.3
by Michael Hudson
pass on python details |
57 |
make -C sourcecode/loggerhead check PYTHON=${PYTHON} \ |
58 |
PYTHON_VERSION=${PYTHON_VERSION} PYTHONPATH=$(PYTHONPATH) |
|
5114.3.1
by Michael Hudson
add the target |
59 |
|
8502.1.1
by Gary Poster
try to rip out any building of download-cache, even on pqm |
60 |
check_merge: $(PY) |
8960.1.1
by Karl Fogel
Undo the temporary Makefile tweak of r8687.15.43, as planned. |
61 |
[ `PYTHONPATH= bzr status -S database/schema/ | \ |
62 |
grep -v "\(^P\|pending\|security.cfg\|Makefile\|unautovacuumable\|_pythonpath.py\)" | wc -l` -eq 0 ] |
|
8234.1.2
by Gary Poster
checkpoint: this initial buildout variant has several parts working, including run, start, stop, and harness. |
63 |
${PY} lib/canonical/tests/test_no_conflict_marker.py |
3691.386.9
by Stuart Bishop
Add switch to disable database patch landings |
64 |
|
8502.1.1
by Gary Poster
try to rip out any building of download-cache, even on pqm |
65 |
check_db_merge: $(PY) |
8234.1.2
by Gary Poster
checkpoint: this initial buildout variant has several parts working, including run, start, stop, and harness. |
66 |
${PY} lib/canonical/tests/test_no_conflict_marker.py |
3691.187.2
by Stuart Bishop
Makefile entry for maintaining edge.launchpad.net branch |
67 |
|
8002.1.5
by Francis J. Lacoste
Move comment out. |
68 |
# This can be removed once we move to zc.buildout and we have versioned
|
69 |
# dependencies, but for now we run both Launchpad and all other
|
|
70 |
# dependencies tests for any merge to sourcecode.
|
|
8864.1.1
by Francis J. Lacoste
Don't shoot yourself in the foot when running check_sourcecode_merge. |
71 |
check_sourcecode_merge: check |
8002.1.4
by Francis J. Lacoste
Add check_sourcecode_merge target to run tests when merging onto sourcecode. |
72 |
$(MAKE) -C sourcecode check PYTHON=${PYTHON} \ |
73 |
PYTHON_VERSION=${PYTHON_VERSION} PYTHONPATH=$(PYTHONPATH) |
|
74 |
||
8665.1.5
by Francis J. Lacoste
Add check_config target. |
75 |
check_config: build |
76 |
bin/test -m canonical.config.tests -vvt test_config |
|
77 |
||
8780.1.1
by Julian Edwards
Make clean a dependency of check in the top-level Makefile |
78 |
# Clean before running the test suite, since the build might fail depending
|
79 |
# what source changes happened. (e.g. apidoc depends on interfaces)
|
|
80 |
check: clean build |
|
1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
81 |
# Run all tests. test_on_merge.py takes care of setting up the
|
8234.1.6
by Gary Poster
fold bin/py into compile |
82 |
# database.
|
8234.1.4
by Gary Poster
test works, nominally; and bin/py is a bit more functional. problems with import warnings are more serious because they cause tests to fail. |
83 |
${PY} -t ./test_on_merge.py $(VERBOSITY) |
1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
84 |
|
8791.1.2
by Maris Fogels
Added a Makefile target for running all of the Windmill test suites. |
85 |
jscheck: build |
86 |
# Run all JavaScript integration tests. The test runner takes care of
|
|
87 |
# setting up the test environment.
|
|
88 |
@echo |
|
89 |
@echo "Running the JavaScript integration test suite"
|
|
90 |
@echo |
|
91 |
${PY} utilities/test-all-windmills.py |
|
92 |
||
8514.1.1
by Barry Warsaw
By default, disable the entire MailmanLayer tests. Most of these tests are |
93 |
check_mailman: build |
94 |
# Run all tests, including the Mailman integration
|
|
95 |
# tests. test_on_merge.py takes care of setting up the database.
|
|
96 |
${PY} -t ./test_on_merge.py $(VERBOSITY) --layer=MailmanLayer |
|
97 |
||
8567.1.1
by Gary Poster
fix lint |
98 |
lint: ${PY} |
99 |
@bash ./bin/lint.sh |
|
2513
by Canonical.com Patch Queue Manager
[trivial] Implement make lintmerge. |
100 |
|
8567.1.1
by Gary Poster
fix lint |
101 |
lint-verbose: ${PY} |
102 |
@bash ./bin/lint.sh -v |
|
4935.3.3
by Curtis Hovey
Updated a few files to illustrate how lint works. |
103 |
|
8357.5.14
by Gary Poster
adjust Makefile primarily to make check_merge pass even if _pythonpath.py has changed |
104 |
xxxreport: $(PY) |
8234.1.4
by Gary Poster
test works, nominally; and bin/py is a bit more functional. problems with import warnings are more serious because they cause tests to fail. |
105 |
${PY} -t ./utilities/xxxreport.py -f csv -o xxx-report.csv ./ |
6912.5.12
by Curtis Hovey
Revised Makefile rules for xxxreport. |
106 |
|
8357.5.14
by Gary Poster
adjust Makefile primarily to make check_merge pass even if _pythonpath.py has changed |
107 |
check-configs: $(PY) |
8234.1.2
by Gary Poster
checkpoint: this initial buildout variant has several parts working, including run, start, stop, and harness. |
108 |
${PY} utilities/check-configs.py |
4895.2.2
by Barry Warsaw
SteveA suggests checking config files in two ways: |
109 |
|
1746
by Canonical.com Patch Queue Manager
[r=jamesh] Simple database restoration script and sampledata fixes |
110 |
pagetests: build |
8234.1.4
by Gary Poster
test works, nominally; and bin/py is a bit more functional. problems with import warnings are more serious because they cause tests to fail. |
111 |
env PYTHONPATH=$(PYTHONPATH) bin/test test_pages |
3044.1.15
by James Troup
Fix 'suspicious' line in Makefile to quiet emacs |
112 |
|
6920.1.7
by Leonard Richardson
Fixed the makefile to run apidoc when building. |
113 |
inplace: build |
114 |
||
8234.1.6
by Gary Poster
fold bin/py into compile |
115 |
build: $(BZR_VERSION_INFO) compile apidoc |
6920.1.7
by Leonard Richardson
Fixed the makefile to run apidoc when building. |
116 |
|
8329.1.7
by Gary Poster
convert layout to have eggs and download-cache on top; and add make target for eggs folder, for deployment. |
117 |
eggs: |
8357.5.18
by Gary Poster
fix buildout issues |
118 |
# Usually this is linked via link-external-sourcecode, but in
|
8329.1.7
by Gary Poster
convert layout to have eggs and download-cache on top; and add make target for eggs folder, for deployment. |
119 |
# deployment we create this ourselves.
|
120 |
mkdir eggs |
|
121 |
||
122 |
download-cache: |
|
8495.1.1
by Gary Poster
add comment and correct error message IRT buildout changes |
123 |
@echo "Missing ./download-cache."
|
8357.5.18
by Gary Poster
fix buildout issues |
124 |
@echo "Developers: please run utilities/link-external-sourcecode."
|
8502.1.1
by Gary Poster
try to rip out any building of download-cache, even on pqm |
125 |
@exit 1
|
8329.1.7
by Gary Poster
convert layout to have eggs and download-cache on top; and add make target for eggs folder, for deployment. |
126 |
|
127 |
# The download-cache dependency comes *before* eggs so that developers get the
|
|
128 |
# warning before the eggs directory is made. The target for the eggs directory
|
|
129 |
# is only there for deployment convenience.
|
|
130 |
bin/buildout: download-cache eggs |
|
8942.1.1
by Francis J. Lacoste
Silenced bootstrap.py and buildout.py. |
131 |
$(SHHH) $(PYTHON) bootstrap.py --ez_setup-source=ez_setup.py \ |
8827.2.1
by Gary Poster
use experimental eggs for buildout and friends |
132 |
--download-base=download-cache/dist --eggs=eggs |
8329.1.2
by Gary Poster
specify zope.interface version; make bootstrap and buildout only called when necessary from make file; make change to rocketfuel config file unnecessary, so rocketfuel-setup does not need to be called; make twistd calls include sys.path in PYTHONPATH. |
133 |
|
7675.288.1
by Michael Hudson
this seems to help testing against bzr.dev |
134 |
$(PY): bin/buildout versions.cfg $(BUILDOUT_CFG) setup.py |
135 |
$(SHHH) ./bin/buildout configuration:instance_name=${LPCONFIG} -c $(BUILDOUT_CFG) |
|
8329.1.2
by Gary Poster
specify zope.interface version; make bootstrap and buildout only called when necessary from make file; make change to rocketfuel config file unnecessary, so rocketfuel-setup does not need to be called; make twistd calls include sys.path in PYTHONPATH. |
136 |
|
8357.5.14
by Gary Poster
adjust Makefile primarily to make check_merge pass even if _pythonpath.py has changed |
137 |
compile: $(PY) |
1831
by Canonical.com Patch Queue Manager
New config machinery, database helpers and oddsnsods required for staging |
138 |
${SHHH} $(MAKE) -C sourcecode build PYTHON=${PYTHON} \ |
139 |
PYTHON_VERSION=${PYTHON_VERSION} LPCONFIG=${LPCONFIG} |
|
8234.1.6
by Gary Poster
fold bin/py into compile |
140 |
${SHHH} LPCONFIG=${LPCONFIG} $(PY) -t buildmailman.py |
8827.2.3
by Gary Poster
put in new zc.buildout eggs |
141 |
${SHHH} $(PY) sourcecode/lazr-js/tools/build.py \ |
7459.4.7
by Francis J. Lacoste
Create javascript tree structure and add build integration. |
142 |
-n launchpad -s lib/canonical/launchpad/javascript \
|
143 |
-b lib/canonical/launchpad/icing/build $(EXTRA_JS_FILES) |
|
1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
144 |
|
145 |
test_build: build |
|
8234.1.4
by Gary Poster
test works, nominally; and bin/py is a bit more functional. problems with import warnings are more serious because they cause tests to fail. |
146 |
bin/test $(TESTFLAGS) $(TESTOPTS) |
1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
147 |
|
148 |
test_inplace: inplace |
|
8234.1.4
by Gary Poster
test works, nominally; and bin/py is a bit more functional. problems with import warnings are more serious because they cause tests to fail. |
149 |
bin/test $(TESTFLAGS) $(TESTOPTS) |
1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
150 |
|
151 |
ftest_build: build |
|
8234.1.4
by Gary Poster
test works, nominally; and bin/py is a bit more functional. problems with import warnings are more serious because they cause tests to fail. |
152 |
bin/test -f $(TESTFLAGS) $(TESTOPTS) |
1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
153 |
|
154 |
ftest_inplace: inplace |
|
8234.1.4
by Gary Poster
test works, nominally; and bin/py is a bit more functional. problems with import warnings are more serious because they cause tests to fail. |
155 |
bin/test -f $(TESTFLAGS) $(TESTOPTS) |
1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
156 |
|
6683.1.1
by Brad Crittenden
Cause required bzr-version-info.py to be generated by 'make build' |
157 |
run: inplace stop |
7430.1.1
by Gavin Panella
Clean up the Makefile, including splittig the API doc task into three. |
158 |
$(RM) thread*.request |
8690.4.2
by Francis J. Lacoste
Add a -i command line argument that sets the instance name. |
159 |
bin/run -r librarian,google-webservice -i $(LPCONFIG) |
4004.3.14
by jml at canonical
'make run' only runs webserver & librarian. 'make run_all' runs everything. |
160 |
|
7182.3.1
by Gary Poster
sketch to fix bugs 245368 and 268446. |
161 |
start-gdb: inplace stop support_files |
7430.1.1
by Gavin Panella
Clean up the Makefile, including splittig the API doc task into three. |
162 |
$(RM) thread*.request |
8690.4.2
by Francis J. Lacoste
Add a -i command line argument that sets the instance name. |
163 |
nohup gdb -x run.gdb --args bin/run -i $(LPCONFIG) \ |
8665.1.3
by Francis J. Lacoste
Automatically set the ZConfig configuration file. |
164 |
-r librarian,google-webservice |
6781.1.1
by Herb McNew
Applied the patch that kiko provided and that was tested on staging. Allows us to run an app server instance under gdb. |
165 |
> ${LPCONFIG}-nohup.out 2>&1 & |
166 |
||
7675.5.10
by Tim Penhey
Make 'make schema' not depend on code validity. |
167 |
run_all: inplace stop hosted_branches |
7430.1.1
by Gavin Panella
Clean up the Makefile, including splittig the API doc task into three. |
168 |
$(RM) thread*.request |
7675.226.1
by Jonathan Lange
runlaunchpad demands that the -r option be the first. |
169 |
bin/run -r librarian,buildsequencer,sftp,mailman,codebrowse,google-webservice -i $(LPCONFIG) |
7528.1.6
by Michael Hudson
document new config schema values |
170 |
|
7551.3.10
by Michael Hudson
the real world meets the makefile |
171 |
run_codebrowse: build |
8234.1.2
by Gary Poster
checkpoint: this initial buildout variant has several parts working, including run, start, stop, and harness. |
172 |
BZR_PLUGIN_PATH=bzrplugins $(PY) sourcecode/launchpad-loggerhead/start-loggerhead.py -f |
7528.1.1
by Michael Hudson
add makefile targets and symlinks for running loggerhead in the launchpad tree |
173 |
|
7551.3.10
by Michael Hudson
the real world meets the makefile |
174 |
start_codebrowse: build |
8234.1.2
by Gary Poster
checkpoint: this initial buildout variant has several parts working, including run, start, stop, and harness. |
175 |
BZR_PLUGIN_PATH=$(shell pwd)/bzrplugins $(PY) sourcecode/launchpad-loggerhead/start-loggerhead.py |
7528.1.1
by Michael Hudson
add makefile targets and symlinks for running loggerhead in the launchpad tree |
176 |
|
177 |
stop_codebrowse: |
|
8234.1.2
by Gary Poster
checkpoint: this initial buildout variant has several parts working, including run, start, stop, and harness. |
178 |
$(PY) sourcecode/launchpad-loggerhead/stop-loggerhead.py |
7528.1.1
by Michael Hudson
add makefile targets and symlinks for running loggerhead in the launchpad tree |
179 |
|
8971.2.1
by Stuart Bishop
Add Librarian startup script |
180 |
start_librarian: build |
181 |
bin/start_librarian |
|
182 |
||
183 |
stop_librarian: |
|
184 |
bin/killservice librarian |
|
185 |
||
7182.3.1
by Gary Poster
sketch to fix bugs 245368 and 268446. |
186 |
pull_branches: support_files |
4706.2.11
by Jonathan Lange
Add comments and a sync_branches target that does a pull and scan. |
187 |
# Mirror the hosted branches in the development upload area to the
|
188 |
# mirrored area.
|
|
8234.1.2
by Gary Poster
checkpoint: this initial buildout variant has several parts working, including run, start, stop, and harness. |
189 |
$(PY) cronscripts/supermirror-pull.py upload |
4706.2.8
by Jonathan Lange
Add 'pull', 'scan' and 'rewritemap' targets to Makefile. |
190 |
|
7735.2.2
by Michael Hudson
bye bye more stuff |
191 |
scan_branches: |
4706.2.11
by Jonathan Lange
Add comments and a sync_branches target that does a pull and scan. |
192 |
# Scan branches from the filesystem into the database.
|
8234.1.2
by Gary Poster
checkpoint: this initial buildout variant has several parts working, including run, start, stop, and harness. |
193 |
$(PY) cronscripts/branch-scanner.py |
4706.2.8
by Jonathan Lange
Add 'pull', 'scan' and 'rewritemap' targets to Makefile. |
194 |
|
4706.2.15
by Jonathan Lange
Different OOPS codes for testrunner config. pull_branches instead of pull. |
195 |
sync_branches: pull_branches scan_branches |
4706.2.11
by Jonathan Lange
Add comments and a sync_branches target that does a pull and scan. |
196 |
|
7430.1.3
by Gavin Panella
Post-review changes, and a few others. |
197 |
$(BZR_VERSION_INFO): |
7176.4.1
by Tom Haddon
Only create/recreate the bzr_version_info file if it's changed/needed |
198 |
scripts/update-bzr-version-info.sh |
809
by Canonical.com Patch Queue Manager
Nuke some arch-tags |
199 |
|
7430.1.3
by Gavin Panella
Post-review changes, and a few others. |
200 |
support_files: $(WADL_FILE) $(BZR_VERSION_INFO) |
7182.3.1
by Gary Poster
sketch to fix bugs 245368 and 268446. |
201 |
|
8777.3.2
by Tom Haddon
Clean up make stop and make start by having them use the initscript-stop and initscript-start targets so we're not duplicating. Also clean up the comments for those as appropriate |
202 |
# Intended for use on developer machines
|
203 |
start: inplace stop support_files initscript-start |
|
204 |
||
1884
by Canonical.com Patch Queue Manager
[trivial] run-as-daemon targets |
205 |
# Run as a daemon - hack using nohup until we move back to using zdaemon
|
7182.3.1
by Gary Poster
sketch to fix bugs 245368 and 268446. |
206 |
# properly. We also should really wait until services are running before
|
1937
by Canonical.com Patch Queue Manager
[r=jamesh] Common PID file handing module |
207 |
# exiting, as running 'make stop' too soon after running 'make start'
|
8777.3.2
by Tom Haddon
Clean up make stop and make start by having them use the initscript-stop and initscript-start targets so we're not duplicating. Also clean up the comments for those as appropriate |
208 |
# will not work as expected. For use on production servers, where
|
209 |
# we know we don't need the extra steps in a full "make start"
|
|
210 |
# because of how the code is deployed/built.
|
|
7182.3.1
by Gary Poster
sketch to fix bugs 245368 and 268446. |
211 |
initscript-start: |
8690.4.2
by Francis J. Lacoste
Add a -i command line argument that sets the instance name. |
212 |
nohup bin/run -i $(LPCONFIG) > ${LPCONFIG}-nohup.out 2>&1 & |
7143.1.1
by Tom Haddon
Add stripped down version of 'make start' as 'make initscript-start' for use on production servers where dependencies used in 'make start' aren't needed |
213 |
|
8777.3.2
by Tom Haddon
Clean up make stop and make start by having them use the initscript-stop and initscript-start targets so we're not duplicating. Also clean up the comments for those as appropriate |
214 |
# Intended for use on developer machines
|
215 |
stop: build initscript-stop |
|
216 |
||
1937
by Canonical.com Patch Queue Manager
[r=jamesh] Common PID file handing module |
217 |
# Kill launchpad last - other services will probably shutdown with it,
|
8777.3.2
by Tom Haddon
Clean up make stop and make start by having them use the initscript-stop and initscript-start targets so we're not duplicating. Also clean up the comments for those as appropriate |
218 |
# so killing them after is a race condition. For use on production
|
219 |
# servers, where we know we don't need the extra steps in a full
|
|
220 |
# "make stop" because of how the code is deployed/built.
|
|
8777.3.1
by Tom Haddon
Create an initscript-stop target for use on production servers |
221 |
initscript-stop: |
222 |
bin/killservice librarian buildsequencer launchpad mailman |
|
223 |
||
5447.1.1
by Tom Haddon
Adding shutdown option to makefile |
224 |
shutdown: scheduleoutage stop |
7430.1.1
by Gavin Panella
Clean up the Makefile, including splittig the API doc task into three. |
225 |
$(RM) +maintenancetime.txt |
5447.1.1
by Tom Haddon
Adding shutdown option to makefile |
226 |
|
227 |
scheduleoutage: |
|
5447.1.2
by Tom Haddon
Constant for shutdown and correct path locations |
228 |
echo Scheduling outage in ${MINS_TO_SHUTDOWN} mins |
229 |
date --iso-8601=minutes -u -d +${MINS_TO_SHUTDOWN}mins > +maintenancetime.txt |
|
230 |
echo Sleeping ${MINS_TO_SHUTDOWN} mins |
|
231 |
sleep ${MINS_TO_SHUTDOWN}m |
|
5447.1.1
by Tom Haddon
Adding shutdown option to makefile |
232 |
|
6925.1.1
by Guilherme Salgado
Fix the damn bug. |
233 |
harness: |
8234.1.2
by Gary Poster
checkpoint: this initial buildout variant has several parts working, including run, start, stop, and harness. |
234 |
bin/harness |
1716.5.37
by kiko
Add harness Makefile convenience shortcut |
235 |
|
6925.1.1
by Guilherme Salgado
Fix the damn bug. |
236 |
iharness: |
8234.1.2
by Gary Poster
checkpoint: this initial buildout variant has several parts working, including run, start, stop, and harness. |
237 |
bin/iharness |
3673.1.10
by David Allouche
add iharness target to ./Makefile, that runs ipython instead of plain python |
238 |
|
1716.5.42
by kiko
Add a rebuildfti Makefile target, and make newsampledata use it |
239 |
rebuildfti: |
240 |
@echo Rebuilding FTI indexes on launchpad_dev database |
|
8234.1.2
by Gary Poster
checkpoint: this initial buildout variant has several parts working, including run, start, stop, and harness. |
241 |
$(PY) database/schema/fti.py -d launchpad_dev --force |
1716.5.42
by kiko
Add a rebuildfti Makefile target, and make newsampledata use it |
242 |
|
1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
243 |
clean: |
7430.1.1
by Gavin Panella
Clean up the Makefile, including splittig the API doc task into three. |
244 |
$(MAKE) -C sourcecode/pygettextpo clean |
245 |
find . -type f \( \ |
|
246 |
-name '*.o' -o -name '*.so' -o -name '*.la' -o \ |
|
247 |
-name '*.lo' -o -name '*.py[co]' -o -name '*.dll' \) \ |
|
248 |
-print0 | xargs -r0 $(RM) |
|
8234.1.6
by Gary Poster
fold bin/py into compile |
249 |
$(RM) -r bin |
250 |
$(RM) -r parts |
|
251 |
$(RM) .installed.cfg |
|
7430.1.1
by Gavin Panella
Clean up the Makefile, including splittig the API doc task into three. |
252 |
$(RM) -r build |
253 |
$(RM) thread*.request |
|
8294.7.14
by Francis J. Lacoste
Clean a lot of junk directories in /var/tmp that can cause trouble. |
254 |
$(RM) -r lib/mailman |
7459.4.14
by Francis J. Lacoste
Merge RF, resolving conflict. |
255 |
$(RM) -rf lib/canonical/launchpad/icing/build/* |
7430.1.1
by Gavin Panella
Clean up the Makefile, including splittig the API doc task into three. |
256 |
$(RM) -r $(CODEHOSTING_ROOT) |
257 |
$(RM) $(WADL_FILE) $(API_INDEX) |
|
7430.1.3
by Gavin Panella
Post-review changes, and a few others. |
258 |
$(RM) $(BZR_VERSION_INFO) |
8357.5.4
by Gary Poster
make bootstrap use the local downloaded version of zc.buildout. This should eliminate the last bit of network access on deployment boxes--and on development boxes, once setuptools is installed properly. |
259 |
$(RM) _pythonpath.py |
8294.7.14
by Francis J. Lacoste
Clean a lot of junk directories in /var/tmp that can cause trouble. |
260 |
$(RM) -rf \ |
261 |
/var/tmp/builddmaster \
|
|
262 |
/var/tmp/bzrsync \
|
|
263 |
/var/tmp/codehosting.test \
|
|
264 |
/var/tmp/codeimport \
|
|
265 |
/var/tmp/fatsam.appserver \
|
|
266 |
/var/tmp/launchpad_mailqueue \
|
|
267 |
/var/tmp/lperr \
|
|
268 |
/var/tmp/lperr.test \
|
|
269 |
/var/tmp/mailman \
|
|
270 |
/var/tmp/mailman-xmlrpc.test \
|
|
271 |
/var/tmp/ppa \
|
|
272 |
/var/tmp/ppa.test \
|
|
273 |
/var/tmp/zeca |
|
1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
274 |
|
275 |
realclean: clean |
|
7430.1.1
by Gavin Panella
Clean up the Makefile, including splittig the API doc task into three. |
276 |
$(RM) TAGS tags |
1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
277 |
|
6206.1.1
by Tim Penhey
Update development location changes. |
278 |
clean_codehosting: |
7430.1.1
by Gavin Panella
Clean up the Makefile, including splittig the API doc task into three. |
279 |
$(RM) -r $(CODEHOSTING_ROOT) |
6206.1.1
by Tim Penhey
Update development location changes. |
280 |
mkdir -p $(CODEHOSTING_ROOT)/mirrors |
281 |
mkdir -p $(CODEHOSTING_ROOT)/push-branches |
|
6206.1.5
by Tim Penhey
Make sure that there is some launchpad lookup file. |
282 |
mkdir -p $(CODEHOSTING_ROOT)/config |
8426.6.6
by Michael Hudson
create /var/tmp/bzrsync when we deal with the rest of codehosting. this is such a mess! |
283 |
mkdir -p /var/tmp/bzrsync |
6206.1.5
by Tim Penhey
Make sure that there is some launchpad lookup file. |
284 |
touch $(CODEHOSTING_ROOT)/config/launchpad-lookup.txt |
6206.1.1
by Tim Penhey
Update development location changes. |
285 |
|
1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
286 |
zcmldocs: |
7430.1.3
by Gavin Panella
Post-review changes, and a few others. |
287 |
mkdir -p doc/zcml/namespaces.zope.org |
8234.1.4
by Gary Poster
test works, nominally; and bin/py is a bit more functional. problems with import warnings are more serious because they cause tests to fail. |
288 |
bin/stxdocs \
|
7430.1.3
by Gavin Panella
Post-review changes, and a few others. |
289 |
-f sourcecode/zope/src/zope/app/zcmlfiles/meta.zcml \
|
290 |
-o doc/zcml/namespaces.zope.org |
|
1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
291 |
|
2237
by Canonical.com Patch Queue Manager
[trivial] Libraraian upstream tweaks, which demonstrate the the feature is broken (?) |
292 |
potemplates: launchpad.pot |
293 |
||
294 |
# Generate launchpad.pot by extracting message ids from the source
|
|
295 |
launchpad.pot: |
|
8234.1.4
by Gary Poster
test works, nominally; and bin/py is a bit more functional. problems with import warnings are more serious because they cause tests to fail. |
296 |
bin/i18nextract.py |
1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
297 |
|
5543.3.2
by Tim Penhey
Alterations to the way codebrowse is started, and updating rocketfuel-setup |
298 |
install: reload-apache |
299 |
||
6991.1.1
by Guilherme Salgado
Serve *.launchpad.dev through https |
300 |
copy-certificates: |
7029.3.3
by Henning Eggers
Added creation of /etc/apache/ssl directory to Makefile before copying files there, as it might not exist. |
301 |
mkdir -p /etc/apache2/ssl |
6991.1.1
by Guilherme Salgado
Serve *.launchpad.dev through https |
302 |
cp configs/development/launchpad.crt /etc/apache2/ssl/ |
303 |
cp configs/development/launchpad.key /etc/apache2/ssl/ |
|
304 |
||
305 |
copy-apache-config: |
|
7459.5.19
by Michael Hudson
mandatory sed-implied comment |
306 |
# We insert the absolute path to the branch-rewrite script
|
307 |
# into the Apache config as we copy the file into position.
|
|
7459.5.2
by Michael Hudson
add somewhat working script |
308 |
sed -e 's,%BRANCH_REWRITE%,$(shell pwd)/scripts/branch-rewrite.py,' configs/development/local-launchpad-apache > /etc/apache2/sites-available/local-launchpad
|
8898.1.1
by Michael Hudson
chown the log file when installing the apache config |
309 |
touch /var/tmp/bazaar.launchpad.dev/rewrite.log |
310 |
chown $(SUDO_UID):$(SUDO_GID) /var/tmp/bazaar.launchpad.dev/rewrite.log |
|
6991.1.1
by Guilherme Salgado
Serve *.launchpad.dev through https |
311 |
|
312 |
enable-apache-launchpad: copy-apache-config copy-certificates |
|
5543.3.2
by Tim Penhey
Alterations to the way codebrowse is started, and updating rocketfuel-setup |
313 |
a2ensite local-launchpad |
314 |
||
6991.1.1
by Guilherme Salgado
Serve *.launchpad.dev through https |
315 |
reload-apache: enable-apache-launchpad |
5543.3.2
by Tim Penhey
Alterations to the way codebrowse is started, and updating rocketfuel-setup |
316 |
/etc/init.d/apache2 reload |
317 |
||
4338.2.1
by Tom Haddon
Make +style-slimmer.css using "make static" |
318 |
static: |
8234.1.2
by Gary Poster
checkpoint: this initial buildout variant has several parts working, including run, start, stop, and harness. |
319 |
$(PY) scripts/make-static.py |
4338.2.1
by Tom Haddon
Make +style-slimmer.css using "make static" |
320 |
|
8234.1.6
by Gary Poster
fold bin/py into compile |
321 |
TAGS: compile |
8234.1.5
by Gary Poster
slight clean up. |
322 |
# emacs tags
|
323 |
bin/tags -e |
|
324 |
||
8234.1.6
by Gary Poster
fold bin/py into compile |
325 |
tags: compile |
8234.1.5
by Gary Poster
slight clean up. |
326 |
# vi tags
|
327 |
bin/tags -v |
|
328 |
||
8234.1.6
by Gary Poster
fold bin/py into compile |
329 |
ID: compile |
8234.1.5
by Gary Poster
slight clean up. |
330 |
# idutils ID file
|
331 |
bin/tags -i |
|
1102
by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs |
332 |
|
8002.1.2
by Francis J. Lacoste
Run dbfreeze_check on merge. |
333 |
.PHONY: apidoc check tags TAGS zcmldocs realclean clean debug stop\ |
334 |
start run ftest_build ftest_inplace test_build test_inplace pagetests\ |
|
8002.1.4
by Francis J. Lacoste
Add check_sourcecode_merge target to run tests when merging onto sourcecode. |
335 |
check check_loggerhead_on_merge check_merge check_sourcecode_merge \ |
8002.1.2
by Francis J. Lacoste
Run dbfreeze_check on merge. |
336 |
schema default launchpad.pot check_merge_ui pull scan sync_branches\ |
8665.1.5
by Francis J. Lacoste
Add check_config target. |
337 |
reload-apache hosted_branches check_db_merge check_mailman check_config |