# -* Makefile *-
# Author : Paul RASCLE (EDF)
# Date : 06/02/2006
-# $Header$
#
+
include $(top_srcdir)/salome_adm/unix/make_common_starter.am
SUBDIRS = salome docutils
+EXTRA_DIST = configuration_examples
+
docs: usr_docs
usr_docs:
dev_docs:
(cd salome && $(MAKE) $(AM_MAKEFLAGS) dev_docs)
-
-dist-hook:
- cp -Rp $(srcdir)/configuration_examples $(distdir)
- rm -rf $(distdir)/configuration_examples/CVS
endif
-EXTRA_DIST= html
+EXTRA_DIST = archives
SPHINXOPTS =
SOURCEDIR = $(srcdir)
SPHINX_LD_LIBRARY_PATH = $(OMNIORB_ROOT)/lib
htm:
- mkdir -p html doctrees
+ $(MKDIR_P) html doctrees
PYTHONPATH=$(SPHINX_PYTHONPATH):${PYTHONPATH}; \
LD_LIBRARY_PATH=$(SPHINX_LD_LIBRARY_PATH):${LD_LIBRARY_PATH}; \
$(SPHINXBUILD) -W -b html $(ALLSPHINXOPTS) html
@echo "Build finished. The HTML pages are in html."
latex:
- mkdir -p latex doctrees
+ $(MKDIR_P) latex doctrees
PYTHONPATH=$(SPHINX_PYTHONPATH):${PYTHONPATH}; \
LD_LIBRARY_PATH=$(SPHINX_LD_LIBRARY_PATH):${LD_LIBRARY_PATH}; \
$(SPHINXBUILD) -W -b latex $(ALLSPHINXOPTS) latex
"run these through (pdf)latex."
html:
- mkdir -p $@
+ $(MKDIR_P) $@
RSTFILES= \
index.rst \
conf.py
install-data-local: html/index.html
- $(INSTALL) -d $(pydocdir)
+ test -z $(pydocdir) || $(MKDIR_P) $(DESTDIR)$(pydocdir)
if test -d "html"; then b=; else b="$(srcdir)/"; fi; \
cp -rf $$b"html"/* $(pydocdir) ; \
if test -f $$b"latex"/kernelpy.pdf; then cp -f $$b"latex"/kernelpy.pdf $(pydocdir) ; fi;
uninstall-local:
- chmod -R +w $(pydocdir)
- rm -rf $(pydocdir)/*
+ -test -d $(pydocdir) && chmod -R +w $(pydocdir) && rm -rf $(pydocdir)/*
clean-local:
-rm -rf html latex doctrees
if test -d "html"; then rm -rf html ; fi
+
+disthook :
+ -test -d html && cp -Rp html $(distdir)