~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: INADA Naoki
  • Date: 2011-05-05 09:15:34 UTC
  • mto: (5830.3.3 i18n-msgfmt)
  • mto: This revision was merged to the branch mainline in revision 5873.
  • Revision ID: songofacandy@gmail.com-20110505091534-7sv835xpofwrmpt4
Add update-pot command to Makefile and tools/bzrgettext script that
extracts help text from bzr commands.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
docfiles = bzr bzrlib
76
76
api-docs:
77
77
        mkdir -p api/html
78
 
        pydoctor --make-html --docformat='restructuredtext' --html-output=api/html $(docfiles)
 
78
        PYTHONPATH=$(PWD) $(PYTHON) tools/bzr_epydoc --html -o api/html --docformat 'restructuredtext en' $(docfiles)
 
79
check-api-docs:
 
80
        PYTHONPATH=$(PWD) $(PYTHON) tools/bzr_epydoc --check --docformat 'restructuredtext en' $(docfiles)
79
81
 
80
82
# build tags for emacs and vim
81
83
TAGS:
423
425
.PHONY: update-pot po/bzr.pot
424
426
update-pot: po/bzr.pot
425
427
 
426
 
TRANSLATABLE_PYFILES:=$(shell find bzrlib -name '*.py' \
427
 
                | grep -v 'bzrlib/tests/' \
428
 
                | grep -v 'bzrlib/doc' \
429
 
                )
 
428
PYFILES:=$(shell find bzrlib -name '*.py')
430
429
 
431
430
po/bzr.pot: $(PYFILES) $(DOCFILES)
432
 
        $(PYTHON) ./bzr export-pot > po/bzr.pot
433
 
        echo $(TRANSLATABLE_PYFILES) | xargs \
434
 
          xgettext --package-name "bzr" \
 
431
        $(PYTHON) tools/bzrgettext bzrlib/*.py \
 
432
          bzrlib/plugins/*.py \
 
433
          > po/bzr.pot
 
434
        echo $(PYFILES) | xargs \
 
435
          xgettext --package-name "Bazaar" \
435
436
          --msgid-bugs-address "<bazaar@canonical.com>" \
436
437
          --copyright-holder "Canonical" \
437
438
          --from-code ISO-8859-1 --join --sort-by-file --add-comments=i18n: \