~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

(jameinel) Allow 'bzr serve' to interpret SIGHUP as a graceful shutdown.
 (bug #795025) (John A Meinel)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2012, 2016, 2017 Canonical Ltd
 
1
# Copyright (C) 2005-2011 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 -Oselftest.timeout=120 \
47
 
          --subunit $(tests) | tee selftest.log
 
46
        $(PYTHON) -Werror -Wignore::ImportWarning -O ./bzr selftest --subunit $(tests) | tee selftest.log
48
47
        echo `date` ": selftest ends" 1>&2
49
48
        # An empty log file should catch errors in the $(PYTHON)
50
49
        # command above (the '|' swallow any errors since 'make'
148
147
NEWS_FILES = $(wildcard doc/en/release-notes/bzr-*.txt)
149
148
 
150
149
doc/en/user-reference/index.txt: $(MAN_DEPENDENCIES)
151
 
        LANGUAGE=C $(PYTHON) tools/generate_docs.py -o $@ rstx
 
150
        $(PYTHON) tools/generate_docs.py -o $@ rstx
152
151
 
153
152
doc/en/release-notes/index.txt: $(NEWS_FILES) tools/generate_release_notes.py
154
153
        $(PYTHON) tools/generate_release_notes.py $@ $(NEWS_FILES)
192
191
        cd doc/developers && make htmlhelp
193
192
 
194
193
 
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
 
 
203
194
### Documentation Website ###
204
195
 
205
196
# Where to build the website
435
426
update-pot: po/bzr.pot
436
427
 
437
428
TRANSLATABLE_PYFILES:=$(shell find bzrlib -name '*.py' \
438
 
                | grep -v 'bzrlib/tests/' \
439
 
                | grep -v 'bzrlib/doc' \
 
429
                | grep -v 'bzrlib/tests/' \
 
430
                | grep -v 'bzrlib/doc' \
440
431
                )
441
432
 
442
433
po/bzr.pot: $(PYFILES) $(DOCFILES)
443
 
        $(PYTHON) ./bzr export-pot --include-duplicates > po/bzr.pot
 
434
        $(PYTHON) ./bzr export-pot > po/bzr.pot
444
435
        echo $(TRANSLATABLE_PYFILES) | xargs \
445
436
          xgettext --package-name "bzr" \
446
437
          --msgid-bugs-address "<bazaar@canonical.com>" \
454
445
.PHONY: dist check-dist-tarball
455
446
 
456
447
# 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.
457
451
dist: 
458
452
        version=`./bzr version --short` && \
459
453
        echo Building distribution of bzr $$version && \
462
456
        tarball=$$PWD/../bzr-$$version.tar.gz && \
463
457
        $(MAKE) clean && \
464
458
        $(MAKE) && \
465
 
        $(PYTHON) setup.py sdist -d $$PWD/.. && \
466
 
        gpg --detach-sign --armor $$tarball && \
 
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 && \
467
463
        rm -rf $$expbasedir
468
464
 
469
465
# run all tests in a previously built tarball