~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Gordon Tyler
  • Date: 2010-01-14 15:24:04 UTC
  • mto: (5037.3.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5046.
  • Revision ID: gordon@doxxx.net-20100114152404-d64ik2afl96lcml0
Reverted changes to test_rules since the original should work now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2010 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2007, 2008, 2009 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
39
39
check: docs check-nodocs
40
40
 
41
41
check-nodocs: extensions
42
 
        # Generate a stream for PQM to watch.
43
 
        $(PYTHON) -Werror -O ./bzr selftest --subunit $(tests) | tee selftest.log
44
 
        # Check that there were no errors reported.
45
 
        subunit-stats < selftest.log
 
42
        $(PYTHON) -Werror -O ./bzr selftest -1v $(tests)
46
43
 
47
44
# Run Python style checker (apt-get install pyflakes)
48
45
#
202
199
 
203
200
# translate txt docs to html
204
201
derived_txt_files = \
 
202
        doc/en/user-reference/bzr_man.txt \
205
203
        doc/en/release-notes/NEWS.txt
206
204
txt_all = \
207
205
        doc/en/tutorials/tutorial.txt \
298
296
%.html: %.txt
299
297
        $(rst2html) --stylesheet=../../default.css $< $@
300
298
 
 
299
doc/en/user-reference/bzr_man.txt: $(MAN_DEPENDENCIES)
 
300
        $(PYTHON) tools/generate_docs.py -o $@ rstx
 
301
 
301
302
doc/en/release-notes/NEWS.txt: NEWS
302
303
        $(PYTHON) -c "import shutil; shutil.copyfile('$<', '$@')"
303
304
 
409
410
 
410
411
### Packaging Targets ###
411
412
 
412
 
.PHONY: dist check-dist-tarball
 
413
.PHONY: dist dist-upload-escudero check-dist-tarball
413
414
 
414
415
# build a distribution source tarball
415
416
#
437
438
        tar Cxz $$tmpdir -f $$tarball && \
438
439
        $(MAKE) -C $$tmpdir/bzr-$$version check && \
439
440
        rm -rf $$tmpdir
 
441
 
 
442
 
 
443
# upload previously built tarball to the download directory on bazaar-vcs.org,
 
444
# and verify that it can be downloaded ok.
 
445
dist-upload-escudero:
 
446
        version=`./bzr version --short` && \
 
447
        tarball=../bzr-$$version.tar.gz && \
 
448
        scp $$tarball $$tarball.sig \
 
449
            escudero.ubuntu.com:/srv/bazaar.canonical.com/www/releases/src \
 
450
                && \
 
451
        echo verifying over http... && \
 
452
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.tar.gz \
 
453
                | diff -s - $$tarball && \
 
454
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.tar.gz.sig \
 
455
                | diff -s - $$tarball.sig