~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Tarmac
  • Author(s): Vincent Ladeuil
  • Date: 2017-01-30 14:42:05 UTC
  • mfrom: (6620.1.1 trunk)
  • Revision ID: tarmac-20170130144205-r8fh2xpmiuxyozpv
Merge  2.7 into trunk including fix for bug #1657238 [r=vila]

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2011 Canonical Ltd
 
1
# Copyright (C) 2005-2012, 2016, 2017 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
43
43
        # Generate a stream for PQM to watch.
44
44
        -$(RM) -f selftest.log
45
45
        echo `date` ": selftest starts" 1>&2
46
 
        $(PYTHON) -Werror -Wignore::ImportWarning -O ./bzr selftest --subunit $(tests) | tee selftest.log
 
46
        $(PYTHON) -Werror -Wignore::ImportWarning -O ./bzr selftest -Oselftest.timeout=120 \
 
47
          --subunit $(tests) | tee selftest.log
47
48
        echo `date` ": selftest ends" 1>&2
48
49
        # An empty log file should catch errors in the $(PYTHON)
49
50
        # command above (the '|' swallow any errors since 'make'
147
148
NEWS_FILES = $(wildcard doc/en/release-notes/bzr-*.txt)
148
149
 
149
150
doc/en/user-reference/index.txt: $(MAN_DEPENDENCIES)
150
 
        $(PYTHON) tools/generate_docs.py -o $@ rstx
 
151
        LANGUAGE=C $(PYTHON) tools/generate_docs.py -o $@ rstx
151
152
 
152
153
doc/en/release-notes/index.txt: $(NEWS_FILES) tools/generate_release_notes.py
153
154
        $(PYTHON) tools/generate_release_notes.py $@ $(NEWS_FILES)
191
192
        cd doc/developers && make htmlhelp
192
193
 
193
194
 
 
195
# Build the texinfo files using Sphinx.
 
196
texinfo-sphinx: $(SPHINX_DEPENDENCIES)
 
197
        cd doc/en && make texinfo
 
198
        cd doc/es && make texinfo
 
199
        cd doc/ru && make texinfo
 
200
        cd doc/ja && make texinfo
 
201
        cd doc/developers && make texinfo
 
202
 
194
203
### Documentation Website ###
195
204
 
196
205
# Where to build the website
426
435
update-pot: po/bzr.pot
427
436
 
428
437
TRANSLATABLE_PYFILES:=$(shell find bzrlib -name '*.py' \
429
 
                | grep -v 'bzrlib/tests/' \
430
 
                | grep -v 'bzrlib/doc' \
 
438
                | grep -v 'bzrlib/tests/' \
 
439
                | grep -v 'bzrlib/doc' \
431
440
                )
432
441
 
433
442
po/bzr.pot: $(PYFILES) $(DOCFILES)
434
 
        $(PYTHON) ./bzr export-pot > po/bzr.pot
 
443
        $(PYTHON) ./bzr export-pot --include-duplicates > po/bzr.pot
435
444
        echo $(TRANSLATABLE_PYFILES) | xargs \
436
445
          xgettext --package-name "bzr" \
437
446
          --msgid-bugs-address "<bazaar@canonical.com>" \
445
454
.PHONY: dist check-dist-tarball
446
455
 
447
456
# build a distribution source tarball
448
 
#
449
 
# this method of copying the pyrex generated files is a bit ugly; it would be
450
 
# nicer to generate it from distutils.
451
457
dist: 
452
458
        version=`./bzr version --short` && \
453
459
        echo Building distribution of bzr $$version && \
456
462
        tarball=$$PWD/../bzr-$$version.tar.gz && \
457
463
        $(MAKE) clean && \
458
464
        $(MAKE) && \
459
 
        bzr export $$expdir && \
460
 
        cp bzrlib/*.c bzrlib/*.h $$expdir/bzrlib/. && \
461
 
        tar cfz $$tarball -C $$expbasedir bzr-$$version && \
462
 
        gpg --detach-sign $$tarball && \
 
465
        $(PYTHON) setup.py sdist -d $$PWD/.. && \
 
466
        gpg --detach-sign --armor $$tarball && \
463
467
        rm -rf $$expbasedir
464
468
 
465
469
# run all tests in a previously built tarball