Salome HOME
CMake: bug fix: OmniORB detection: Python backend is detected by looking
[modules/kernel.git] / Makefile.am
index e8f17aa00c9b2696849f09b6aaf6dd7783c4c276..a16b17ca9a868a1ab4ac9270e72c51981c3efe30 100644 (file)
@@ -1,21 +1,53 @@
-# -* Makefile *- 
+# Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
 #
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+# -* Makefile *- 
 # Author : Guillaume BOULANT (CSSI)
 # Date : 09/11/2005
 # $Header$
 #
-
+include $(top_srcdir)/salome_adm/unix/make_common_starter.am
+#
 if CORBA_GEN
   IDLDIR = idl
 endif
 
-SUBDIRS = $(IDLDIR) src doc salome_adm bin resources
+ACLOCAL_AMFLAGS = -I salome_adm/unix/config_files
+
+if WITHONLYLAUNCHER
+  SUBDIRS = src resources
+else
+  SUBDIRS = salome_adm $(IDLDIR) src bin doc resources
+endif
 
-DIST_SUBDIRS=   idl src doc salome_adm bin resources
+DIST_SUBDIRS= salome_adm idl src doc bin resources
 
-DISTCLEANFILES = a.out
+DISTCLEANFILES = a.out local-install.sh hack_libtool aclocal.m4 configure salome_adm/unix/config_files/config.guess salome_adm/unix/config_files/config.sub salome_adm/unix/config_files/depcomp salome_adm/unix/config_files/install-sh salome_adm/unix/config_files/libtool.m4 salome_adm/unix/config_files/ltmain.sh salome_adm/unix/config_files/ltoptions.m4 salome_adm/unix/config_files/ltsugar.m4 salome_adm/unix/config_files/ltversion.m4 salome_adm/unix/config_files/lt~obsolete.m4 salome_adm/unix/config_files/missing salome_adm/unix/config_files/py-compile
 
-EXTRA_DIST = \
+salomeinclude_DATA = KERNEL_version.h
+
+EXTRA_DIST += \
+       build_cmake \
+       build_cmake.bat \
        build_configure \
        clean_configure \
        LICENCE \
@@ -25,5 +57,10 @@ EXTRA_DIST = \
 dist-hook:
        rm -rf `find $(distdir) -name CVS`
 
-userdoc:
-       (cd doc && $(MAKE) $(AM_MAKEFLAGS) userdoc)
\ No newline at end of file
+usr_docs:
+       (cd doc && $(MAKE) $(AM_MAKEFLAGS) usr_docs)
+
+docs:usr_docs
+
+dev_docs:
+       (cd doc && $(MAKE) $(AM_MAKEFLAGS) dev_docs)