~launchpad-pqm/launchpad/devel

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