Salome HOME
Merge from BR_V5_DEV 17Feb09
[plugins/hexoticplugin.git] / adm_local / unix / make_common_starter.am
1 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D
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 # File   : make_common_starter.am
21 # Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
22 # ---
23 # ============================================================
24 # This file defines the common definitions used in several
25 # Makefile. This file must be included, if needed, by the file
26 # Makefile.am.
27 # ============================================================
28 # Standard directory for installation
29 #
30 salomeincludedir   = $(includedir)/salome
31 libdir             = $(prefix)/lib@LIB_LOCATION_SUFFIX@/salome
32 bindir             = $(prefix)/bin/salome
33 salomescriptdir    = $(bindir)
34 salomepythondir    = $(pythondir)/salome
35 salomepyexecdir    = $(pyexecdir)/salome
36
37 # Directory for installing idl files
38 salomeidldir       = $(prefix)/idl/salome
39
40 # Directory for installing resource files
41 salomeresdir       = $(prefix)/share/salome/resources/@MODULE_NAME@
42
43 # Directories for installing admin files
44 admlocaldir        = $(prefix)/adm_local
45 admlocalunixdir    = $(admlocaldir)/unix
46 admlocalm4dir      = $(admlocaldir)/unix/config_files
47
48 # Shared modules installation directory
49 sharedpkgpythondir = $(salomepythondir)/shared_modules
50
51 # Documentation directory
52 docdir             = $(datadir)/doc/salome
53
54 # common rules
55
56 # meta object implementation files generation (moc)
57 %_moc.cxx: %.h
58         $(MOC) $< -o $@
59
60 # translation (*.qm) files generation (lrelease)
61 %.qm: %.ts
62         $(LRELEASE) $< -qm $@
63
64 # resource files generation (qrcc)
65 qrc_%.cxx: %.qrc
66         $(QRCC) $< -o $@ -name $(*F)
67
68 # qt forms files generation (uic)
69 ui_%.h: %.ui
70         $(UIC) -o $@ $<
71
72 # extra distributed files
73 EXTRA_DIST = $(MOC_FILES:%_moc.cxx=%.h) $(QRC_FILES:qrc_%.cxx=%.qrc) \
74              $(UIC_FILES:ui_%.h=%.ui) $(nodist_salomeres_DATA:%.qm=%.ts)
75
76 # customize clean operation
77 mostlyclean-local:
78         rm -f @builddir@/*_moc.cxx
79         rm -f @builddir@/*.qm
80         rm -f @builddir@/ui_*.h
81         rm -f @builddir@/qrc_*.cxx
82
83 # tests
84 tests: unittest
85
86 unittest: $(UNIT_TEST_PROG)
87         @if test "x$(UNIT_TEST_PROG)" != "x"; then \
88             $(UNIT_TEST_PROG);                     \
89         fi;