cp -rp $(srcdir)/images/head.png $(DESTDIR)$(docdir)/gui/SMESH/smeshpy_doc ;
uninstall-local:
- rm -rf $(DESTDIR)$(docdir)/gui/SMESH
+ @test -d $(DESTDIR)$(guidocdir) && chmod -R +w $(DESTDIR)$(guidocdir) ; \
+ for filen in `find $(DESTDIR)$(guidocdir) -mindepth 1 -maxdepth 1` dummy ; do \
+ case $${filen} in \
+ dummy ) ;; \
+ $(DESTDIR)$(guidocdir)/yams ) ;; \
+ $(DESTDIR)$(guidocdir)/head.png ) ;; \
+ * ) echo "removing $${filen}" && rm -rf $${filen} ;; \
+ esac ; \
+ done
yamsdocdir=$(docdir)/gui/SMESH/yams
-
RSTFILES = lct.rst \
index.rst \
editHypo.rst \
Generics_params.rst \
Advanced_params.rst
-EXTRA_DIST += $(RSTFILES)
+EXTRA_DIST += $(RSTFILES) images
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
-CONF_FILE_DIR = .
+CONF_FILE_DIR = $(top_builddir)/src/Tools/YamsPlug/doc
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
.PHONY: help clean html latexpdf
-all:
- make html
-
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " linkcheck to check all external links for integrity"
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
-install-data-local: all
- test -z $(yamsdocdir) || mkdir -p $(yamsdocdir)
- cp -rf $(BUILDDIR)/html/* $(yamsdocdir) ;
+install-data-local: $(BUILDDIR)/html/index.html
+ -test -z $(yamsdocdir) || mkdir -p $(yamsdocdir) && cp -rf $(BUILDDIR)/html/* $(yamsdocdir) ;
+
+uninstall-local:
+ -test -d $(yamsdocdir) && chmod -R +w $(yamsdocdir) && rm -rf $(yamsdocdir)/*
-clean:
+clean-local:
-rm -rf $(BUILDDIR)/*
-html:
+$(BUILDDIR)/html/index.html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."