]> SALOME platform Git repositories - modules/gui.git/blob - adm_local/unix/make_common_starter.am
Salome HOME
f21fc707621a86fe4079c2ac337665e211f1356d
[modules/gui.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 salomescriptdir    = $(bindir)
33 salomepythondir    = $(pythondir)/salome
34 salomepyexecdir    = $(pyexecdir)/salome
35
36 # Directory for installing idl files
37 salomeidldir       = $(prefix)/idl/salome
38
39 # Directory for installing resource files
40 salomeresdir       = $(prefix)/share/salome/resources/@MODULE_NAME@
41
42 # Directories for installing admin files
43 admlocaldir        = $(prefix)/adm_local
44 admlocalunixdir    = $(admlocaldir)/unix
45 admlocalm4dir      = $(admlocaldir)/unix/config_files
46
47 # Directory for install cmake files
48 admlocal_cmakedir = $(admlocaldir)/cmake_files
49
50 # Shared modules installation directory
51 sharedpkgpythondir = $(salomepythondir)/shared_modules
52
53 # Documentation directory
54 docdir             = $(datadir)/doc/salome
55
56 # common rules
57
58 # meta object implementation files generation (moc)
59 %_moc.cxx: %.h
60         $(MOC) $(MOC_FLAGS) $< -o $@
61
62 # translation (*.qm) files generation (lrelease)
63 %.qm: resources/%.ts
64         $(LRELEASE) $< -qm $@
65
66 # resource files generation (qrcc)
67 qrc_%.cxx: %.qrc
68         $(QRCC) $< -o $@ -name $(*F)
69
70 # qt forms files generation (uic)
71 ui_%.h: %.ui
72         $(UIC) -o $@ $<
73
74 # extra distributed files
75 EXTRA_DIST = $(MOC_FILES:%_moc.cxx=%.h) $(QRC_FILES:qrc_%.cxx=%.qrc) \
76              $(UIC_FILES:ui_%.h=%.ui) $(nodist_salomeres_DATA:%.qm=resources/%.ts)
77
78 # customize clean operation
79 mostlyclean-local:
80         rm -f @builddir@/*_moc.cxx
81         rm -f @builddir@/*.qm
82         rm -f @builddir@/qrc_*.cxx
83         rm -f @builddir@/ui_*.h
84
85 # tests
86 tests: unittest
87
88 unittest: $(UNIT_TEST_PROG)
89         @if test "x$(UNIT_TEST_PROG)" != "x"; then \
90             $(UNIT_TEST_PROG);                     \
91         fi;