~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Jonathan Lange
  • Date: 2011-02-18 16:20:51 UTC
  • mto: This revision was merged to the branch mainline in revision 12472.
  • Revision ID: jml@canonical.com-20110218162051-ddg0bv1f328ai2oi
Factor out some of the log cleaning

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
pagetests: build
135
135
        env PYTHONPATH=$(PYTHONPATH) bin/test test_pages
136
136
 
137
 
inplace: build
 
137
inplace: build clean_logs
138
138
        mkdir -p $(CODEHOSTING_ROOT)/mirrors
139
139
        mkdir -p $(CODEHOSTING_ROOT)/config
140
140
        mkdir -p /var/tmp/bzrsync
260
260
        $(PY) cronscripts/merge-proposal-jobs.py -v
261
261
 
262
262
run: check_schema inplace stop
263
 
        $(RM) logs/thread*.request
264
263
        bin/run -r librarian,google-webservice,memcached -i $(LPCONFIG)
265
264
 
266
265
run.gdb:
267
266
        echo 'run' > run.gdb
268
267
 
269
268
start-gdb: check_schema inplace stop support_files run.gdb
270
 
        $(RM) logs/thread*.request
271
269
        nohup gdb -x run.gdb --args bin/run -i $(LPCONFIG) \
272
270
                -r librarian,google-webservice
273
271
                > ${LPCONFIG}-nohup.out 2>&1 &
274
272
 
275
273
run_all: check_schema inplace stop
276
 
        $(RM) logs/thread*.request
277
274
        bin/run -r librarian,sftp,forker,mailman,codebrowse,google-webservice,memcached \
278
275
            -i $(LPCONFIG)
279
276
 
287
284
        $(PY) scripts/stop-loggerhead.py
288
285
 
289
286
run_codehosting: check_schema inplace stop
290
 
        $(RM) logs/thread*.request
291
287
        bin/run -r librarian,sftp,forker,codebrowse -i $(LPCONFIG)
292
288
 
293
289
start_librarian: compile
363
359
        $(RM) -r build
364
360
        $(RM) _pythonpath.py
365
361
 
366
 
clean: clean_js clean_buildout
 
362
clean_logs:
 
363
        $(RM) logs/thread*.request
 
364
 
 
365
clean: clean_js clean_buildout clean_logs
367
366
        $(MAKE) -C sourcecode/pygettextpo clean
368
367
        # XXX gary 2009-11-16 bug 483782
369
368
        # The pygettextpo Makefile should have this next line in it for its make
377
376
            -name '*.lo' -o -name '*.py[co]' -o -name '*.dll' -o \
378
377
            -name '*.pt.py' \) \
379
378
            -print0 | xargs -r0 $(RM)
380
 
        $(RM) logs/thread*.request
381
379
        $(RM) -r lib/mailman
382
380
        $(RM) -rf lib/canonical/launchpad/icing/build/*
383
381
        $(RM) -rf $(CODEHOSTING_ROOT)
498
496
        check_merge_ui pull scan sync_branches reload-apache hosted_branches \
499
497
        check_db_merge check_mailman check_config jsbuild jsbuild_lazr \
500
498
        clean_js clean_buildout buildonce_eggs build_eggs sprite_css \
501
 
        sprite_image css_combine compile check_schema pydoctor
 
499
        sprite_image css_combine compile check_schema pydoctor clean_logs \