~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Ian Clatworthy
  • Date: 2007-08-14 02:48:36 UTC
  • mto: (2733.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 2734.
  • Revision ID: ian.clatworthy@internode.on.net-20070814024836-xvzzxgu6iu0qb2xa
Ensure doc hierarchy is setup correctly for the Windows installer

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
 
70
70
# translate txt docs to html
71
71
derived_txt_files := \
72
 
        doc/en/mini-tutorial/index.txt \
73
72
        doc/en/user-reference/bzr_man.txt \
74
73
        doc/en/developer-guide/HACKING.txt \
75
74
        doc/en/release-notes/NEWS.txt
76
75
doc_dir := doc/en/user-guide
77
76
txt_files := $(wildcard $(addsuffix /*.txt, $(doc_dir))) $(derived_txt_files) \
 
77
        doc/en/mini-tutorial/index.txt \
78
78
        doc/index.txt
79
79
htm_files := $(patsubst %.txt, %.html, $(txt_files)) 
80
80
dev_txt_files := $(wildcard $(addsuffix /*.txt, doc/developers))
111
111
man1/bzr.1: $(MAN_DEPENDENCIES)
112
112
        python generate_docs.py -o $@ man
113
113
 
114
 
ALL_DOCS = $(htm_files) $(MAN_PAGES) $(dev_htm_files) doc/developers/performance.png
 
114
WEB_DOCS = $(htm_files) $(dev_htm_files) \
 
115
           doc/default.css \
 
116
           doc/en/quick-reference/quick-start-summary.svg \
 
117
           doc/developers/performance.png
 
118
ALL_DOCS = $(WEB_DOCS) $(MAN_PAGES)
115
119
docs: $(ALL_DOCS)
116
120
 
117
121
# build a png of our performance task list
122
126
 
123
127
### Pretty Documentation ###
124
128
 
125
 
# Produce HTML docs to upload on Canonical server
126
129
HTMLDIR := html_docs
127
130
PRETTYDIR := pretty_docs
128
131
 
 
132
# Produce HTML docs to upload on Canonical server
129
133
html-docs: docs
130
 
        python tools/win32/ostools.py copytodir $(htm_files) doc/default.css $(HTMLDIR)
 
134
        python tools/win32/ostools.py copytree $(WEB_DOCS) $(HTMLDIR)
131
135
 
132
136
$(PRETTYDIR)/%.html: pretty_docs doc/%.txt
133
137
        python tools/rst2prettyhtml.py doc/bazaar-vcs.org.kid doc/$*.txt \
169
173
        python25 setup.py bdist_wininst --install-script="bzr-win32-bdist-postinstall.py" -d .
170
174
 
171
175
copy-docs: docs
172
 
        python tools/win32/ostools.py copytodir $(htm_files) \
173
 
                doc/default.css NEWS README \
174
 
                win32_bzr.exe/doc
175
 
        python tools/win32/ostools.py copytodir $(dev_htm_files) \
176
 
                win32_bzr.exe/doc/developers
 
176
        python tools/win32/ostools.py copytodir README win32_bzr.exe/doc
 
177
        python tools/win32/ostools.py copytree $(WEB_DOCS) win32_bzr.exe
177
178
 
178
179
# clean on win32 all installer-related files and directories
179
180
clean-win32: clean-docs