pydocdir = $(docdir)/tui/GEOM/docutils
-.PHONY : latex
-
-if SPHINX_IS_OK
-
-html/index.html:$(RSTFILES)
- make htm
-
-endif
+RSTFILES = \
+ index.rst \
+ overview.rst \
+ docapi.rst
-EXTRA_DIST+= images
+EXTRA_DIST = images $(RSTFILES)
SPHINXOPTS =
SOURCEDIR = $(srcdir)
SPHINX_LD_LIBRARY_PATH = $(KERNEL_ROOT_DIR)/lib/salome:$(OMNIORB_ROOT)/lib
-htm:
+
+.PHONY: latex
+
+if SPHINX_IS_OK
+
+html/index.html:$(RSTFILES)
mkdir -p html doctrees
PYTHONPATH=$(SPHINX_PYTHONPATH):${PYTHONPATH} \
LD_LIBRARY_PATH=$(SPHINX_LD_LIBRARY_PATH):${LD_LIBRARY_PATH} \
@echo
@echo "Build finished. The HTML pages are in html."
+else
+
+html/index.html:
+ @echo "Documentation for Python package not built. Sphinx was not present at configure time."
+
+endif
+
latex:
mkdir -p latex doctrees
PYTHONPATH=$(SPHINX_PYTHONPATH):${PYTHONPATH} \
@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
"run these through (pdf)latex."
-html:
- mkdir -p $@
-
-RSTFILES= \
- index.rst \
- overview.rst \
- docapi.rst
-
-EXTRA_DIST+= $(RSTFILES)
-
install-data-local: html/index.html
test -z $(pydocdir) || mkdir -p $(DESTDIR)$(pydocdir)
if test -d "html"; then b=; else b="$(srcdir)/"; fi; \
-rm -rf html latex doctrees
if test -d "html"; then rm -rf html ; fi
-disthook :
+dist-hook:
-test -d html && cp -Rp html $(distdir)