Salome HOME
7d0ef27c6c6c1638eaacfc382fe718222c33a6ea
[modules/med.git] / Makefile.am
1 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 # -* Makefile *- 
21 # Author : Patrick GOLDBRONN (CEA)
22 # Date : 28/06/2001
23 # $Header$
24 #
25 include $(top_srcdir)/adm_local/unix/make_common_starter.am
26
27 EXTRA_DIST += CMakeLists.txt
28
29 if MED_ENABLE_KERNEL
30 if MED_ENABLE_GUI
31   ACLOCAL_AMFLAGS = -I adm_local/unix/config_files                      \
32                     -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files  \
33                     -I ${GUI_ROOT_DIR}/adm_local/unix/config_files
34 else !MED_ENABLE_GUI
35   ACLOCAL_AMFLAGS = -I adm_local/unix/config_files                      \
36                     -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files
37 endif
38 else !MED_ENABLE_KERNEL
39 if MED_ENABLE_GUI
40   ACLOCAL_AMFLAGS = -I adm_local/unix/config_files                      \
41                     -I adm_local_without_kernel/unix/config_files       \
42                     -I ${GUI_ROOT_DIR}/adm_local/unix/config_files
43 else !MED_ENABLE_GUI
44   ACLOCAL_AMFLAGS = -I adm_local/unix/config_files                      \
45                     -I adm_local_without_kernel/unix/config_files
46 endif
47 endif
48
49 if MED_ENABLE_KERNEL
50   IDLDIR = idl
51 endif
52
53 SUBDIRS = adm_local
54
55 if !MED_ENABLE_KERNEL
56 SUBDIRS += adm_local_without_kernel
57 endif
58
59 SUBDIRS += $(IDLDIR) src doc resources bin
60
61 DIST_SUBDIRS = adm_local adm_local_without_kernel idl src doc resources bin
62
63 DISTCLEANFILES = a.out aclocal.m4 configure local-install.sh hack_libtool adm_local/unix/config_files/config.guess adm_local/unix/config_files/config.sub adm_local/unix/config_files/depcomp adm_local/unix/config_files/install-sh adm_local/unix/config_files/libtool.m4 adm_local/unix/config_files/ltmain.sh adm_local/unix/config_files/ltoptions.m4 adm_local/unix/config_files/ltsugar.m4 adm_local/unix/config_files/ltversion.m4 adm_local/unix/config_files/lt~obsolete.m4 adm_local/unix/config_files/missing adm_local/unix/config_files/py-compile
64
65 salomeinclude_DATA = MED_version.h
66
67 EXTRA_DIST += build_configure clean_configure LICENCE INSTALL README build_cmake build_cmake.bat
68
69 dist-hook:
70         rm -rf `find $(distdir) -name CVS`
71
72 dev_docs:
73         (cd doc && $(MAKE) $(AM_MAKEFLAGS) dev_docs)
74
75 docs: usr_docs
76
77 usr_docs:
78         (cd doc && $(MAKE) $(AM_MAKEFLAGS) usr_docs)