- doc/design-2.0-cluster-parameters.rst \
- doc/design-2.0-commandline-parameters.rst \
- doc/design-2.0-disk-handling.rst \
- doc/design-2.0-index.rst \
- doc/design-2.0-job-queue.rst \
- doc/design-2.0-locking.rst \
- doc/design-2.0-master-daemon.rst \
- doc/design-2.0-os-interface.rst \
- doc/design-2.0-rapi-changes.rst
-
-doc_DATA = \
- $(patsubst %.rst,%.html,$(docrst)) \
- $(patsubst %.sgml,%.html,$(docsgml)) \
- $(patsubst %.sgml,%.pdf,$(docsgml))
+ doc/admin.rst \
+ doc/design-2.0.rst \
+ doc/glossary.rst \
+ doc/hooks.rst \
+ doc/iallocator.rst \
+ doc/index.rst \
+ doc/install.rst \
+ doc/rapi.rst \
+ doc/security.rst
+
+doc/html: $(docrst) $(docpng) doc/conf.py configure.ac
+ @test -n "$(SPHINX)" || \
+ { echo 'sphinx-build' not found during configure; exit 1; }
+ mkdir -p doc/build/doctrees
+ PYTHONPATH=.:$(top_builddir) sphinx-build -q -b html \
+ -d doc/build/doctrees \
+ -D version="$(VERSION_MAJOR).$(VERSION_MINOR)" \
+ -D release="$(PACKAGE_VERSION)" \
+ $(top_srcdir)/doc doc/html
+ touch "$@"
+
+docdot = \
+ doc/arch-2.0.dot
+
+docpng = $(patsubst %.dot,%.png,$(docdot))
+
+noinst_DATA = $(manhtml) doc/html