Revision d17e74b4 Makefile.am
b/Makefile.am | ||
---|---|---|
37 | 37 |
tools |
38 | 38 |
|
39 | 39 |
MAINTAINERCLEANFILES = \ |
40 |
$(dochtml) \ |
|
41 |
$(patsubst %.dot,%.png,$(docdot)) \ |
|
40 |
$(docpng) \ |
|
42 | 41 |
$(maninput) |
43 | 42 |
|
43 |
maintainer-clean-local: |
|
44 |
-rm -rf doc/api doc/build doc/html |
|
45 |
|
|
44 | 46 |
CLEANFILES = \ |
45 | 47 |
autotools/replace_vars.sed \ |
46 | 48 |
devel/upload \ |
... | ... | |
111 | 113 |
doc/design-2.0.rst \ |
112 | 114 |
doc/hooks.rst \ |
113 | 115 |
doc/iallocator.rst \ |
116 |
doc/index.rst \ |
|
114 | 117 |
doc/install.rst \ |
115 | 118 |
doc/rapi.rst \ |
116 | 119 |
doc/security.rst |
117 | 120 |
|
118 |
dochtml = $(patsubst %.rst,%.html,$(docrst)) |
|
121 |
doc/html: $(docrst) $(docpng) doc/conf.py configure.ac |
|
122 |
@test -n "$(SPHINX)" || \ |
|
123 |
{ echo 'sphinx-build' not found during configure; exit 1; } |
|
124 |
mkdir -p doc/build/doctrees |
|
125 |
PYTHONPATH=.:$(top_builddir) sphinx-build -q -b html \ |
|
126 |
-d doc/build/doctrees \ |
|
127 |
-D version="$(VERSION_MAJOR).$(VERSION_MINOR)" \ |
|
128 |
-D release="$(PACKAGE_VERSION)" \ |
|
129 |
$(top_srcdir)/doc doc/html |
|
130 |
touch "$@" |
|
119 | 131 |
|
120 | 132 |
docdot = \ |
121 | 133 |
doc/arch-2.0.dot |
122 | 134 |
|
123 |
doc_DATA = $(dochtml)
|
|
135 |
docpng = $(patsubst %.dot,%.png,$(docdot))
|
|
124 | 136 |
|
125 |
noinst_DATA = $(manhtml) |
|
137 |
noinst_DATA = $(manhtml) doc/html
|
|
126 | 138 |
|
127 | 139 |
dist_sbin_SCRIPTS = \ |
128 | 140 |
daemons/ganeti-noded \ |
... | ... | |
149 | 161 |
DEVNOTES \ |
150 | 162 |
autotools/docbook-wrapper \ |
151 | 163 |
devel/upload.in \ |
152 |
$(docrst) \ |
|
153 | 164 |
$(docdot) \ |
165 |
$(docrst) \ |
|
166 |
doc/conf.py \ |
|
167 |
doc/html \ |
|
154 | 168 |
doc/examples/bash_completion.in \ |
155 | 169 |
doc/examples/ganeti.initd.in \ |
156 | 170 |
doc/examples/ganeti.cron.in \ |
... | ... | |
234 | 248 |
$(REPLACE_VARS_SED) |
235 | 249 |
sed -f $(REPLACE_VARS_SED) < $< > $@ |
236 | 250 |
|
237 |
doc/%.html: doc/%.rst |
|
238 |
@test -n "$(RST2HTML)" || { echo 'rst2html' not found during configure; exit 1; } |
|
239 |
$(RST2HTML) $< $@ |
|
240 |
|
|
241 | 251 |
doc/%.png: doc/%.dot |
242 | 252 |
@test -n "$(DOT)" || { echo 'dot' not found during configure; exit 1; } |
243 | 253 |
$(DOT) -Tpng -o $@ $< |
244 | 254 |
|
245 |
doc/design-2.0.html: doc/design-2.0.rst doc/arch-2.0.png |
|
246 |
|
|
247 | 255 |
man/%.7.in man/%.8.in: man/%.sgml man/footer.sgml $(DOCBOOK_WRAPPER) |
248 | 256 |
@test -n "$(DOCBOOK2MAN)" || { echo 'docbook2html' not found during configure; exit 1; } |
249 | 257 |
TMPDIR=`mktemp -d` && { \ |
Also available in: Unified diff