~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Jelmer Vernooij
  • Date: 2010-12-20 02:23:31 UTC
  • mto: This revision was merged to the branch mainline in revision 5577.
  • Revision ID: jelmer@samba.org-20101220022331-hbm91o1ps9gjrlns
Add testr magic for bzr selftest --list

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
check: docs check-nodocs
40
40
 
41
41
check-nodocs: extensions
 
42
        set -e
42
43
        # Generate a stream for PQM to watch.
 
44
        -$(RM) -f selftest.log
43
45
        $(PYTHON) -Werror -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
44
50
        # Check that there were no errors reported.
45
51
        subunit-stats < selftest.log
46
52
 
133
139
        doc/developers/Makefile \
134
140
        doc/developers/make.bat
135
141
 
 
142
NEWS_FILES = $(wildcard doc/en/release-notes/bzr-*.txt)
 
143
 
136
144
doc/en/user-reference/index.txt: $(MAN_DEPENDENCIES)
137
145
        $(PYTHON) tools/generate_docs.py -o $@ rstx
138
146
 
139
 
doc/en/release-notes/index.txt: NEWS tools/generate_release_notes.py
140
 
        $(PYTHON) tools/generate_release_notes.py NEWS $@
 
147
doc/en/release-notes/index.txt: $(NEWS_FILES) tools/generate_release_notes.py
 
148
        $(PYTHON) tools/generate_release_notes.py $@ $(NEWS_FILES)
141
149
 
142
150
doc/%/Makefile: doc/en/Makefile
143
151
        $(PYTHON) -c "import shutil; shutil.copyfile('$<', '$@')"
296
304
        $(rst2html) --stylesheet=default.css $< $@
297
305
 
298
306
%.html: %.txt
299
 
        $(rst2html) --stylesheet=../../default.css $< $@
 
307
        $(rst2html) --stylesheet=../../default.css $< "$@"
300
308
 
301
 
doc/en/release-notes/NEWS.txt: NEWS
302
 
        $(PYTHON) -c "import shutil; shutil.copyfile('$<', '$@')"
 
309
doc/en/release-notes/NEWS.txt: $(NEWS_FILES) tools/generate_release_notes.py
 
310
        $(PYTHON) tools/generate_release_notes.py "$@" $(NEWS_FILES)
303
311
 
304
312
upgrade_guide_dependencies =  $(wildcard $(addsuffix /*.txt, doc/en/upgrade-guide)) 
305
313