~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Vincent Ladeuil
  • Date: 2010-10-07 06:08:01 UTC
  • mto: This revision was merged to the branch mainline in revision 5491.
  • Revision ID: v.ladeuil+lp@free.fr-20101007060801-wfdhizfhfmctl8qa
Fix some typos and propose a release planning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2011 Canonical Ltd
 
1
# Copyright (C) 2005-2010 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
28
28
PLUGIN_TARGET=plugin-release
29
29
PYTHON_BUILDFLAGS=
30
30
 
31
 
.PHONY: all clean realclean extensions pyflakes api-docs check-nodocs check
 
31
.PHONY: all clean extensions pyflakes api-docs check-nodocs check
32
32
 
33
33
all: extensions
34
34
 
42
42
        set -e
43
43
        # Generate a stream for PQM to watch.
44
44
        -$(RM) -f selftest.log
45
 
        echo `date` ": selftest starts" 1>&2
46
 
        $(PYTHON) -Werror -Wignore::ImportWarning -O ./bzr selftest -Oselftest.timeout=120 \
47
 
          --subunit $(tests) | tee selftest.log
48
 
        echo `date` ": selftest ends" 1>&2
 
45
        $(PYTHON) -Werror -O ./bzr selftest --subunit $(tests) | tee selftest.log
49
46
        # An empty log file should catch errors in the $(PYTHON)
50
47
        # command above (the '|' swallow any errors since 'make'
51
48
        # sees the 'tee' exit code for the whole line
69
66
        $(PYTHON) setup.py clean
70
67
        -find . -name "*.pyc" -o -name "*.pyo" -o -name "*.so" | xargs rm -f
71
68
 
72
 
realclean: clean
73
 
        # Remove files which are autogenerated but included by the tarball.
74
 
        rm -f bzrlib/*_pyx.c
75
 
        rm -f bzrlib/_simple_set_pyx.h bzrlib/_simple_set_pyx_api.h
76
 
 
77
69
# Build API documentation
78
70
docfiles = bzr bzrlib
79
71
api-docs:
80
72
        mkdir -p api/html
81
 
        pydoctor --make-html --docformat='restructuredtext' --html-output=api/html $(docfiles)
 
73
        PYTHONPATH=$(PWD) $(PYTHON) tools/bzr_epydoc --html -o api/html --docformat 'restructuredtext en' $(docfiles)
 
74
check-api-docs:
 
75
        PYTHONPATH=$(PWD) $(PYTHON) tools/bzr_epydoc --check --docformat 'restructuredtext en' $(docfiles)
82
76
 
83
77
# build tags for emacs and vim
84
78
TAGS:
145
139
        doc/developers/Makefile \
146
140
        doc/developers/make.bat
147
141
 
148
 
NEWS_FILES = $(wildcard doc/en/release-notes/bzr-*.txt)
149
 
 
150
142
doc/en/user-reference/index.txt: $(MAN_DEPENDENCIES)
151
143
        $(PYTHON) tools/generate_docs.py -o $@ rstx
152
144
 
153
 
doc/en/release-notes/index.txt: $(NEWS_FILES) tools/generate_release_notes.py
154
 
        $(PYTHON) tools/generate_release_notes.py $@ $(NEWS_FILES)
 
145
doc/en/release-notes/index.txt: NEWS tools/generate_release_notes.py
 
146
        $(PYTHON) tools/generate_release_notes.py NEWS $@
155
147
 
156
148
doc/%/Makefile: doc/en/Makefile
157
149
        $(PYTHON) -c "import shutil; shutil.copyfile('$<', '$@')"
310
302
        $(rst2html) --stylesheet=default.css $< $@
311
303
 
312
304
%.html: %.txt
313
 
        $(rst2html) --stylesheet=../../default.css $< "$@"
 
305
        $(rst2html) --stylesheet=../../default.css $< $@
314
306
 
315
 
doc/en/release-notes/NEWS.txt: $(NEWS_FILES) tools/generate_release_notes.py
316
 
        $(PYTHON) tools/generate_release_notes.py "$@" $(NEWS_FILES)
 
307
doc/en/release-notes/NEWS.txt: NEWS
 
308
        $(PYTHON) -c "import shutil; shutil.copyfile('$<', '$@')"
317
309
 
318
310
upgrade_guide_dependencies =  $(wildcard $(addsuffix /*.txt, doc/en/upgrade-guide)) 
319
311
 
421
413
        $(PYTHON) tools/win32/ostools.py remove dist
422
414
 
423
415
 
424
 
# i18n targets
425
 
 
426
 
.PHONY: update-pot po/bzr.pot
427
 
update-pot: po/bzr.pot
428
 
 
429
 
TRANSLATABLE_PYFILES:=$(shell find bzrlib -name '*.py' \
430
 
                | grep -v 'bzrlib/tests/' \
431
 
                | grep -v 'bzrlib/doc' \
432
 
                )
433
 
 
434
 
po/bzr.pot: $(PYFILES) $(DOCFILES)
435
 
        $(PYTHON) ./bzr export-pot --include-duplicates > po/bzr.pot
436
 
        echo $(TRANSLATABLE_PYFILES) | xargs \
437
 
          xgettext --package-name "bzr" \
438
 
          --msgid-bugs-address "<bazaar@canonical.com>" \
439
 
          --copyright-holder "Canonical" \
440
 
          --from-code ISO-8859-1 --join --sort-by-file --add-comments=i18n: \
441
 
          -d bzr -p po -o bzr.pot
442
 
 
443
 
 
444
416
### Packaging Targets ###
445
417
 
446
418
.PHONY: dist check-dist-tarball