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