]> SALOME platform Git repositories - modules/med.git/blob - adm_local/unix/make_common_starter.am
Salome HOME
Merge from V6_main (04/10/2012)
[modules/med.git] / adm_local / unix / make_common_starter.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 # ============================================================
21 # The following is to avoid PACKAGE_... env variable
22 # redefinition compilation warnings
23 # ============================================================
24 #
25 if MED_ENABLE_KERNEL
26   AM_CXXFLAGS = @KERNEL_CXXFLAGS@ -include SALOMEconfig.h
27   AM_CPPFLAGS = @KERNEL_CXXFLAGS@ -include SALOMEconfig.h
28 else !MED_ENABLE_KERNEL
29   AM_CXXFLAGS = -I$(top_builddir)/adm_local_without_kernel -include SALOMEconfig.h
30   AM_CPPFLAGS = -I$(top_builddir)/adm_local_without_kernel -include SALOMEconfig.h
31 endif
32
33 # ============================================================
34 # This file defines the common definitions used in several
35 # Makefile. This file must be included, if needed, by the file
36 # Makefile.am.
37 # ============================================================
38 # Standard directory for installation
39 #
40 salomeincludedir   = $(includedir)/salome
41 libdir             = $(prefix)/lib@LIB_LOCATION_SUFFIX@/salome
42 bindir             = $(prefix)/bin/salome
43 purebindir         = $(prefix)/bin
44 salomescriptdir    = $(bindir)
45 salomepythondir    = $(pythondir)/salome
46 salomepyexecdir    = $(pyexecdir)/salome
47
48 # Tests environment folders
49 testsenvirondir    = $(prefix)/Tests/environ
50 testsenvironcshdir = $(prefix)/Tests/environ/csh
51
52 # Directory for installing idl files
53 salomeidldir       = $(prefix)/idl/salome
54
55 # Directory for installing resource files
56 salomeresdir       = $(prefix)/share/salome/resources/@MODULE_NAME@
57
58 # Directories for installing admin files
59 admlocaldir        = $(prefix)/adm_local
60 admlocalunixdir    = $(admlocaldir)/unix
61 admlocalm4dir      = $(admlocaldir)/unix/config_files
62
63 # Shared modules installation directory
64 sharedpkgpythondir = $(salomepythondir)/shared_modules
65
66 # Documentation directory
67 docdir             = $(datadir)/doc/salome
68
69 EXTRA_DIST =
70
71 # tests
72 tests: unittest
73
74 unittest: $(UNIT_TEST_PROG)
75         @if test "x$(UNIT_TEST_PROG)" != "x"; then \
76             for exe in $(UNIT_TEST_PROG) ; do \
77                 env top_srcdir=@top_srcdir@ top_builddir=@top_builddir@ ./$$exe; \
78                 err=0; \
79                 for f in `find -name "UnitTestsResult*"` XXX ; do \
80                     if [[ $$f == XXX ]] ; then continue ; fi ; \
81                     if [[ `awk '{ print $$1 }' $$f` != "OK" ]]; then \
82                         cat $$f; \
83                         err=1; \
84                     fi; \
85                 done; \
86                 if [[ $$err == 1 ]] ; then \
87                     exit 10; \
88                 fi; \
89             done; \
90         fi;
91
92 # documentation
93 html-local: $(DOX_INPUT_FILE)
94         @if test "x$(DOX_INPUT_FILE)" != "x"; then \
95             doxygen $(DOX_INPUT_FILE);             \
96         fi;