~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-05-10 05:55:01 UTC
  • mfrom: (2481.1.5 roadmap)
  • Revision ID: pqm@pqm.ubuntu.com-20070510055501-w262sk5hl33vmd19
(robertc) Move HACKING to doc/developers/HACKING and start on performance analysis documentation. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
doc_dir := doc 
76
76
txt_files := $(wildcard $(addsuffix /*.txt, $(doc_dir))) doc/bzr_man.txt
77
77
htm_files := $(patsubst %.txt, %.htm, $(txt_files)) 
 
78
dev_txt_files := $(wildcard $(addsuffix /*.txt, doc/developers))
 
79
dev_htm_files := $(patsubst %.txt, %.htm, $(dev_txt_files)) 
78
80
 
79
81
pretty-html-docs: pretty_files
80
82
 
83
85
 
84
86
pretty_files: $(patsubst doc/%.txt, $(PRETTYDIR)/%.htm, $(txt_files))
85
87
 
86
 
doc/HACKING.htm: HACKING
87
 
        python tools/rst2html.py --link-stylesheet --stylesheet=default.css HACKING doc/HACKING.htm
88
 
 
89
 
doc/%.htm: doc/%.txt 
90
 
        python tools/rst2html.py --link-stylesheet --stylesheet=default.css doc/$*.txt doc/$*.htm
 
88
doc/developers/%.htm: doc/developers/%.txt
 
89
        python tools/rst2html.py --link-stylesheet --stylesheet=../default.css $< $@
 
90
 
 
91
doc/developers/HACKING.htm: doc/developers/HACKING
 
92
        python tools/rst2html.py --link-stylesheet --stylesheet=../default.css $< $@
 
93
 
 
94
%.htm: %.txt
 
95
        python tools/rst2html.py --link-stylesheet --stylesheet=default.css $< $@
91
96
 
92
97
$(PRETTYDIR)/%.htm: pretty_docs doc/%.txt
93
98
        python tools/rst2prettyhtml.py doc/bazaar-vcs.org.kid doc/$*.txt \
108
113
man1/bzr.1: $(MAN_DEPENDENCIES)
109
114
        python generate_docs.py -o $@ man
110
115
 
111
 
docs: $(htm_files) $(MAN_PAGES) doc/HACKING.htm
 
116
ALL_DOCS = $(htm_files) $(MAN_PAGES) doc/developers/HACKING.htm $(dev_htm_files)
 
117
docs: $(ALL_DOCS)
112
118
 
113
119
copy-docs: docs
114
120
        python tools/win32/ostools.py copytodir $(htm_files) \
115
 
                doc/default.css doc/HACKING.htm NEWS README \
 
121
                doc/default.css NEWS README \
116
122
                win32_bzr.exe/doc
 
123
        python tools/win32/ostools.py copytodir doc/developers/HACKING.htm \
 
124
                win32_bzr.exe/doc/developers
117
125
 
118
126
# clean produced docs
119
127
clean-docs:
120
 
        python tools/win32/ostools.py remove $(htm_files) \
121
 
        $(HTMLDIR) $(PRETTYDIR) doc/bzr_man.txt $(MAN_PAGES)
 
128
        python tools/win32/ostools.py remove $(ALL_DOCS) \
 
129
        $(HTMLDIR) $(PRETTYDIR) doc/bzr_man.txt
122
130
 
123
131
 
124
132
# make bzr.exe for win32 with py2exe