~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: IWATA Hidetaka
  • Date: 2010-12-26 13:19:11 UTC
  • mto: This revision was merged to the branch mainline in revision 5593.
  • Revision ID: iwata0303@gmail.com-20101226131911-o7txs0fnji5zekq1
add icon resources tbzrcommand(w)

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
 
        $(PYTHON) -Werror -O ./bzr selftest -1 $(tests)
 
42
        set -e
 
43
        # Generate a stream for PQM to watch.
 
44
        -$(RM) -f selftest.log
 
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
 
50
        # Check that there were no errors reported.
 
51
        subunit-stats < selftest.log
43
52
 
44
53
# Run Python style checker (apt-get install pyflakes)
45
54
#
130
139
        doc/developers/Makefile \
131
140
        doc/developers/make.bat
132
141
 
 
142
NEWS_FILES = $(wildcard doc/en/release-notes/bzr-*.txt)
 
143
 
133
144
doc/en/user-reference/index.txt: $(MAN_DEPENDENCIES)
134
145
        $(PYTHON) tools/generate_docs.py -o $@ rstx
135
146
 
136
 
doc/en/release-notes/index.txt: NEWS tools/generate_release_notes.py
137
 
        $(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)
138
149
 
139
150
doc/%/Makefile: doc/en/Makefile
140
151
        $(PYTHON) -c "import shutil; shutil.copyfile('$<', '$@')"
293
304
        $(rst2html) --stylesheet=default.css $< $@
294
305
 
295
306
%.html: %.txt
296
 
        $(rst2html) --stylesheet=../../default.css $< $@
 
307
        $(rst2html) --stylesheet=../../default.css $< "$@"
297
308
 
298
 
doc/en/release-notes/NEWS.txt: NEWS
299
 
        $(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)
300
311
 
301
312
upgrade_guide_dependencies =  $(wildcard $(addsuffix /*.txt, doc/en/upgrade-guide)) 
302
313