]> SALOME platform Git repositories - modules/homard.git/blob - adm_local/unix/make_common_starter.am
Salome HOME
Prise en compte des instants dans les champs de pilotage pour l'écriture du schÃ...
[modules/homard.git] / adm_local / unix / make_common_starter.am
1 # Copyright (C) 2011-2013  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 # ============================================================
21 # This file defines the common definitions used in several
22 # Makefile. This file must be included, if needed, by the file
23 # Makefile.am.
24 # ============================================================
25 # Standard directory for installation
26 #
27 salomeincludedir   = $(includedir)/salome
28 libdir             = $(prefix)/lib@LIB_LOCATION_SUFFIX@/salome
29 bindir             = $(prefix)/bin/salome
30 salomescriptdir    = $(bindir)
31 salomepythondir    = $(pythondir)/salome
32 salomepyexecdir    = $(pyexecdir)/salome
33
34 # Directory for installing idl files
35 salomeidldir       = $(prefix)/idl/salome
36
37 # Directory for installing resource files
38 salomeresdir       = $(prefix)/share/salome/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 = $(salomepythondir)/shared_modules
47
48 # Documentation directory
49 docdir             = $(datadir)/doc/salome
50
51 # common rules
52
53 # meta object implementation files generation (moc)
54 %_moc.cxx: %.h
55         $(MOC) $< -o $@
56
57 # translation (*.qm) files generation (lrelease)
58 %.qm: %.ts
59         $(LRELEASE) $< -qm $@
60
61 # resource files generation (qrcc)
62 qrc_%.cxx: %.qrc
63         $(QRCC) $< -o $@ -name $(*F)
64
65 # qt forms files generation (uic)
66 ui_%.h: %.ui
67         $(UIC) -o $@ $<
68
69 # extra distributed files
70 EXTRA_DIST = $(MOC_FILES:%_moc.cxx=%.h) $(QRC_FILES:qrc_%.cxx=%.qrc) \
71              $(UIC_FILES:ui_%.h=%.ui) $(nodist_salomeres_DATA:%.qm=%.ts)
72
73 # customize clean operation
74 mostlyclean-local:
75         rm -f @builddir@/*_moc.cxx
76         rm -f @builddir@/*.qm
77         rm -f @builddir@/ui_*.h
78         rm -f @builddir@/qrc_*.cxx
79
80 # tests
81 tests: unittest
82
83 unittest: $(UNIT_TEST_PROG)
84         @if test "x$(UNIT_TEST_PROG)" != "x"; then \
85             $(UNIT_TEST_PROG);                     \
86         fi;