Salome HOME
Fix make problems
[modules/med.git] / Makefile.am
1 # Copyright (C) 2007-2013  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 if MED_ENABLE_KERNEL
28 if MED_ENABLE_GUI
29   ACLOCAL_AMFLAGS = -I adm_local/unix/config_files                      \
30                     -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files  \
31                     -I ${GUI_ROOT_DIR}/adm_local/unix/config_files
32 else !MED_ENABLE_GUI
33   ACLOCAL_AMFLAGS = -I adm_local/unix/config_files                      \
34                     -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files
35 endif
36 else !MED_ENABLE_KERNEL
37 if MED_ENABLE_GUI
38   ACLOCAL_AMFLAGS = -I adm_local/unix/config_files                      \
39                     -I adm_local_without_kernel/unix/config_files       \
40                     -I ${GUI_ROOT_DIR}/adm_local/unix/config_files
41 else !MED_ENABLE_GUI
42   ACLOCAL_AMFLAGS = -I adm_local/unix/config_files                      \
43                     -I adm_local_without_kernel/unix/config_files
44 endif
45 endif
46
47 if MED_ENABLE_KERNEL
48   IDLDIR = idl
49 endif
50
51 SUBDIRS = adm_local
52
53 if !MED_ENABLE_KERNEL
54 SUBDIRS += adm_local_without_kernel
55 endif
56
57 SUBDIRS += $(IDLDIR) src doc resources bin
58
59 DIST_SUBDIRS = adm_local adm_local_without_kernel idl src doc resources bin
60
61 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
62
63 salomeinclude_DATA = MED_version.h
64
65 EXTRA_DIST += build_configure clean_configure LICENCE INSTALL README build_cmake build_cmake.bat
66
67 dist-hook:
68         rm -rf `find $(distdir) -name CVS`
69
70 dev_docs:
71         (cd doc && $(MAKE) $(AM_MAKEFLAGS) dev_docs)
72
73 docs: usr_docs
74
75 usr_docs:
76         (cd doc && $(MAKE) $(AM_MAKEFLAGS) usr_docs)