]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fixed bug in docutils: SMESH installation failed when Sphinx was not found by configure
authorbarate <barate>
Thu, 12 May 2011 15:32:16 +0000 (15:32 +0000)
committerbarate <barate>
Thu, 12 May 2011 15:32:16 +0000 (15:32 +0000)
doc/docutils/Makefile.am

index 573f4a4f0b57801ca3329374080ea956d06046b2..a2cb9a49892a9a9a9e6c9ba50990f1ecfe94c5ac 100644 (file)
@@ -24,14 +24,12 @@ include $(top_srcdir)/adm_local/unix/make_common_starter.am
 
 pydocdir = $(docdir)/tui/SMESH/docutils
 
-.PHONY : latex
-
-if SPHINX_IS_OK
-
-html/index.html:$(RSTFILES)
-       make htm
+RSTFILES = \
+       index.rst \
+       overview.rst \
+       docapi.rst
 
-endif
+EXTRA_DIST = $(RSTFILES)
 
 SPHINXOPTS      =
 SOURCEDIR       = $(srcdir)
@@ -43,7 +41,12 @@ SPHINX_PYTHONPATH = $(prefix)/lib/python$(PYTHON_VERSION)/site-packages/salome:$
 
 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} \
@@ -51,6 +54,13 @@ htm:
        @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} \
@@ -61,16 +71,6 @@ latex:
        @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; \
@@ -84,5 +84,5 @@ clean-local:
        -rm -rf html latex doctrees
        if test -d "html"; then rm -rf html ; fi
 
-disthook :
+dist-hook:
        -test -d html && cp -Rp html $(distdir)