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