]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix make distcheck errors
authorvsr <vsr@opencascade.com>
Thu, 30 Sep 2010 11:46:56 +0000 (11:46 +0000)
committervsr <vsr@opencascade.com>
Thu, 30 Sep 2010 11:46:56 +0000 (11:46 +0000)
doc/Makefile.am
doc/docutils/Makefile.am

index 91eeee4849cdc62e074bd393d90d966ef1437ecb..6946e7718d151576e4e4949a80e8a6a7294c3acf 100644 (file)
 # -* 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:
@@ -36,7 +38,3 @@ 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
index 56246adab831a2115b9dff88aac98c0514f3130c..a3d58c1b9838bd1beed9299efdf3c87124fd4229 100644 (file)
@@ -33,7 +33,7 @@ html/index.html:$(RSTFILES)
 
 endif
 
-EXTRA_DIST= html
+EXTRA_DIST = archives
 
 SPHINXOPTS      =
 SOURCEDIR       = $(srcdir)
@@ -46,7 +46,7 @@ SPHINX_PYTHONPATH = $(prefix)/lib/python$(PYTHON_VERSION)/site-packages/salome:$
 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
@@ -54,7 +54,7 @@ htm:
        @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
@@ -64,7 +64,7 @@ latex:
              "run these through (pdf)latex."
 
 html:
-       mkdir -p $@
+       $(MKDIR_P)  $@
 
 RSTFILES= \
        index.rst \
@@ -78,15 +78,17 @@ EXTRA_DIST+= \
        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)