/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: John Arbash Meinel
  • Date: 2011-03-15 10:28:20 UTC
  • mto: This revision was merged to the branch mainline in revision 5725.
  • Revision ID: john@arbash-meinel.com-20110315102820-51wy8wjre5ol34mu
'bzr export' needs to use 'exact' encoding.

If we are going to be writing binary bites out of stdout, then it needs to
be in binary mode, or it will corrupt the data stream.
Oddly enough, it only seemed to fail if we set '--verbose'. I didn't
bother to track into that bug.

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