]> SALOME platform Git repositories - modules/med.git/blob - adm_local/unix/make_common_starter.am
Salome HOME
Merge from BR_V5_DEV 16Feb09
[modules/med.git] / adm_local / unix / make_common_starter.am
1 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 #  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
6 #  This library is free software; you can redistribute it and/or
7 #  modify it under the terms of the GNU Lesser General Public
8 #  License as published by the Free Software Foundation; either
9 #  version 2.1 of the License.
10 #
11 #  This library is distributed in the hope that it will be useful,
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 #  Lesser General Public License for more details.
15 #
16 #  You should have received a copy of the GNU Lesser General Public
17 #  License along with this library; if not, write to the Free Software
18 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22 # ============================================================
23 # This file defines the common definitions used in several
24 # Makefile. This file must be included, if needed, by the file
25 # Makefile.am.
26 # ============================================================
27 # Standard directory for installation
28 #
29 salomeincludedir   = $(includedir)/salome
30 libdir             = $(prefix)/lib@LIB_LOCATION_SUFFIX@/salome
31 bindir             = $(prefix)/bin/salome
32 purebindir         = $(prefix)/bin
33 salomescriptdir    = $(bindir)
34 salomepythondir    = $(pythondir)/salome
35 salomepyexecdir    = $(pyexecdir)/salome
36
37 # Tests environment folders
38 testsenvirondir    = $(prefix)/Tests/environ
39 testsenvironcshdir = $(prefix)/Tests/environ/csh
40
41 # Directory for installing idl files
42 salomeidldir       = $(prefix)/idl/salome
43
44 # Directory for installing resource files
45 salomeresdir       = $(prefix)/share/salome/resources/@MODULE_NAME@
46
47 # Directories for installing admin files
48 admlocaldir        = $(prefix)/adm_local
49 admlocalunixdir    = $(admlocaldir)/unix
50 admlocalm4dir      = $(admlocaldir)/unix/config_files
51
52 # Shared modules installation directory
53 sharedpkgpythondir = $(salomepythondir)/shared_modules
54
55 # Documentation directory
56 docdir             = $(datadir)/doc/salome
57
58 # common rules
59
60 # meta object implementation files generation (moc)
61 %_moc.cxx: %.h
62         $(MOC) $< -o $@
63
64 # translation (*.qm) files generation (lrelease)
65 %.qm: %.ts
66         $(LRELEASE) $< -qm $@
67
68 EXTRA_DIST = $(MOC_FILES:%_moc.cxx=%.h) $(nodist_salomeres_DATA:%.qm=%.ts)
69
70 # customize clean operation
71 mostlyclean-local:
72         rm -f @builddir@/*_moc.cxx
73         rm -f @builddir@/*.qm
74
75 # tests
76 tests: unittest
77
78 unittest: $(UNIT_TEST_PROG)
79         @if test "x$(UNIT_TEST_PROG)" != "x"; then \
80             $(UNIT_TEST_PROG);                     \
81         fi;
82
83 # documentation
84 html-local: $(DOX_INPUT_FILE)
85         @if test "x$(DOX_INPUT_FILE)" != "x"; then \
86             doxygen $(DOX_INPUT_FILE);             \
87         fi;