1 # Copyright (C) 2009-2013 CEA/DEN, EDF R&D
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 # ============================================================
21 # This file defines the common definitions used in several
22 # Makefile. This file must be included, if needed, by the file
24 # ============================================================
26 # Standard directory for installation
28 salomeincludedir = $(includedir)/salome
29 libdir = $(prefix)/lib@LIB_LOCATION_SUFFIX@/salome
30 bindir = $(prefix)/bin/salome
31 salomescriptdir = $(bindir)
32 salomepythondir = $(pythondir)/salome
33 salomepyexecdir = $(pyexecdir)/salome
35 # Directory for installing idl files
36 salomeidldir = $(prefix)/idl/salome
38 # Directory for installing resource files
39 salomeresdir = $(prefix)/share/salome/resources/@MODULE_NAME@
41 # Directories for installing admin files
42 admlocaldir = $(prefix)/adm_local
43 admlocalunixdir = $(admlocaldir)/unix
44 admlocalm4dir = $(admlocaldir)/unix/config_files
46 # Shared modules installation directory
47 sharedpkgpythondir = $(salomepythondir)/shared_modules
49 # Documentation directory
50 docdir = $(datadir)/doc/salome
54 # meta object implementation files generation (moc)
58 # translation (*.qm) files generation (lrelease)
62 # resource files generation (qrcc)
64 $(QRCC) $< -o $@ -name $(*F)
66 # qt forms files generation (uic)
70 # extra distributed files
71 EXTRA_DIST = $(MOC_FILES:%_moc.cxx=%.hxx) $(QRC_FILES:qrc_%.cxx=%.qrc) \
72 $(UIC_FILES:ui_%.h=%.ui) $(nodist_salomeres_DATA:%.qm=resources/%.ts)
74 # customize clean operation
76 rm -f @builddir@/*_moc.cxx
78 rm -f @builddir@/ui_*.h
79 rm -f @builddir@/qrc_*.cxx
84 unittest: $(UNIT_TEST_PROG)
85 @if test "x$(UNIT_TEST_PROG)" != "x"; then \