/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Robert Collins
  • Date: 2010-05-06 11:08:10 UTC
  • mto: This revision was merged to the branch mainline in revision 5223.
  • Revision ID: robertc@robertcollins.net-20100506110810-h3j07fh5gmw54s25
Cleaner matcher matching revised unlocking protocol.

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
 
39
39
check: docs check-nodocs
40
40
 
41
41
check-nodocs: extensions
42
 
        set -e
43
42
        # Generate a stream for PQM to watch.
44
 
        -$(RM) -f selftest.log
45
 
        $(PYTHON) -Werror -Wignore::ImportWarning -O ./bzr selftest --subunit $(tests) | tee selftest.log
46
 
        # An empty log file should catch errors in the $(PYTHON)
47
 
        # command above (the '|' swallow any errors since 'make'
48
 
        # sees the 'tee' exit code for the whole line
49
 
        if [ ! -s selftest.log ] ; then exit 1 ; fi
 
43
        $(PYTHON) -Werror -O ./bzr selftest --subunit $(tests) | tee selftest.log
50
44
        # Check that there were no errors reported.
51
45
        subunit-stats < selftest.log
52
46
 
66
60
        $(PYTHON) setup.py clean
67
61
        -find . -name "*.pyc" -o -name "*.pyo" -o -name "*.so" | xargs rm -f
68
62
 
69
 
realclean: clean
70
 
        # Remove files which are autogenerated but included by the tarball.
71
 
        rm -f bzrlib/*_pyx.c
72
 
        rm -f bzrlib/_simple_set_pyx.h bzrlib/_simple_set_pyx_api.h
73
 
 
74
63
# Build API documentation
75
64
docfiles = bzr bzrlib
76
65
api-docs:
77
66
        mkdir -p api/html
78
 
        pydoctor --make-html --docformat='restructuredtext' --html-output=api/html $(docfiles)
 
67
        PYTHONPATH=$(PWD) $(PYTHON) tools/bzr_epydoc --html -o api/html --docformat 'restructuredtext en' $(docfiles)
 
68
check-api-docs:
 
69
        PYTHONPATH=$(PWD) $(PYTHON) tools/bzr_epydoc --check --docformat 'restructuredtext en' $(docfiles)
79
70
 
80
71
# build tags for emacs and vim
81
72
TAGS:
142
133
        doc/developers/Makefile \
143
134
        doc/developers/make.bat
144
135
 
145
 
NEWS_FILES = $(wildcard doc/en/release-notes/bzr-*.txt)
146
 
 
147
136
doc/en/user-reference/index.txt: $(MAN_DEPENDENCIES)
148
137
        $(PYTHON) tools/generate_docs.py -o $@ rstx
149
138
 
150
 
doc/en/release-notes/index.txt: $(NEWS_FILES) tools/generate_release_notes.py
151
 
        $(PYTHON) tools/generate_release_notes.py $@ $(NEWS_FILES)
 
139
doc/en/release-notes/index.txt: NEWS tools/generate_release_notes.py
 
140
        $(PYTHON) tools/generate_release_notes.py NEWS $@
152
141
 
153
142
doc/%/Makefile: doc/en/Makefile
154
143
        $(PYTHON) -c "import shutil; shutil.copyfile('$<', '$@')"
307
296
        $(rst2html) --stylesheet=default.css $< $@
308
297
 
309
298
%.html: %.txt
310
 
        $(rst2html) --stylesheet=../../default.css $< "$@"
 
299
        $(rst2html) --stylesheet=../../default.css $< $@
311
300
 
312
 
doc/en/release-notes/NEWS.txt: $(NEWS_FILES) tools/generate_release_notes.py
313
 
        $(PYTHON) tools/generate_release_notes.py "$@" $(NEWS_FILES)
 
301
doc/en/release-notes/NEWS.txt: NEWS
 
302
        $(PYTHON) -c "import shutil; shutil.copyfile('$<', '$@')"
314
303
 
315
304
upgrade_guide_dependencies =  $(wildcard $(addsuffix /*.txt, doc/en/upgrade-guide)) 
316
305
 
418
407
        $(PYTHON) tools/win32/ostools.py remove dist
419
408
 
420
409
 
421
 
# i18n targets
422
 
 
423
 
.PHONY: update-pot po/bzr.pot
424
 
update-pot: po/bzr.pot
425
 
 
426
 
TRANSLATABLE_PYFILES:=$(shell find bzrlib -name '*.py' \
427
 
                | grep -v 'bzrlib/tests/' \
428
 
                | grep -v 'bzrlib/doc' \
429
 
                )
430
 
 
431
 
po/bzr.pot: $(PYFILES) $(DOCFILES)
432
 
        $(PYTHON) ./bzr export-pot > po/bzr.pot
433
 
        echo $(TRANSLATABLE_PYFILES) | xargs \
434
 
          xgettext --package-name "bzr" \
435
 
          --msgid-bugs-address "<bazaar@canonical.com>" \
436
 
          --copyright-holder "Canonical" \
437
 
          --from-code ISO-8859-1 --join --sort-by-file --add-comments=i18n: \
438
 
          -d bzr -p po -o bzr.pot
439
 
 
440
 
 
441
410
### Packaging Targets ###
442
411
 
443
412
.PHONY: dist check-dist-tarball