Salome HOME
0020206: EDF SMESH 987: Netgen1D2D3D +submesh
[modules/smesh.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)/@PACKAGE@
30 libdir             = $(prefix)/lib@LIB_LOCATION_SUFFIX@/@PACKAGE@
31 bindir             = $(prefix)/bin/@PACKAGE@
32 salomescriptdir    = $(bindir)
33
34 # Directory for installing idl files
35 salomeidldir       = $(prefix)/idl/@PACKAGE@
36
37 # Directory for installing resource files
38 salomeresdir       = $(prefix)/share/@PACKAGE@/resources/@MODULE_NAME@
39
40 # Directories for installing admin files
41 admlocaldir       = $(prefix)/adm_local
42 admlocalunixdir     = $(admlocaldir)/unix
43 admlocalm4dir        = $(admlocaldir)/unix/config_files
44
45 # Shared modules installation directory
46 sharedpkgpythondir =$(pkgpythondir)/shared_modules
47
48 # Documentation directory
49 docdir             = $(datadir)/doc/@PACKAGE@
50
51 # common rules
52
53 # moc-files generation
54 %_moc.cxx: %.h
55         $(MOC) $< -o $@
56
57 # qm-files generation
58 %.qm: %.po
59         $(MSG2QM) $< $@
60
61 EXTRA_DIST=$(MOC_FILES:%_moc.cxx=%.h) $(nodist_salomeres_DATA:%.qm=%.po)
62
63 mostlyclean-local:
64         rm -f @builddir@/*_moc.cxx
65         rm -f @builddir@/*.qm
66
67 # tests
68 tests: unittest
69
70 unittest: $(UNIT_TEST_PROG)
71         @if test "x$(UNIT_TEST_PROG)" != "x"; then \
72             $(UNIT_TEST_PROG);                     \
73         fi;