]> SALOME platform Git repositories - modules/gui.git/blob - adm_local/unix/make_common_starter.am
Salome HOME
5df7d9f1006edf9f30615852dbc8bf05fde332d2
[modules/gui.git] / adm_local / unix / make_common_starter.am
1 # Copyright (C) 2007-2012  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 # ============================================================
24 # The following is to avoid PACKAGE_... env variable
25 # redefinition compilation warnings
26 # ============================================================
27 #
28 AM_CXXFLAGS = @KERNEL_CXXFLAGS@ -include SALOMEconfig.h -I$(top_builddir)
29 AM_CPPFLAGS = @KERNEL_CXXFLAGS@ -include SALOMEconfig.h -I$(top_builddir)
30
31 # ============================================================
32 # Cmake files wildcard (to add then to the distribution)
33 # ============================================================
34 CMAKEFILES         = $(notdir $(wildcard $(srcdir)/CMakeLists.txt))
35
36 # ============================================================
37 # This file defines the common definitions used in several
38 # Makefile. This file must be included, if needed, by the file
39 # Makefile.am.
40 # ============================================================
41 # Standard directory for installation
42 #
43 salomeincludedir   = $(includedir)/salome
44 libdir             = $(prefix)/lib@LIB_LOCATION_SUFFIX@/salome
45 libparaviewdir     = $(prefix)/lib@LIB_LOCATION_SUFFIX@/paraview
46 bindir             = $(prefix)/bin/salome
47 salomescriptdir    = $(bindir)
48 salomepythondir    = $(pythondir)/salome
49 salomepyexecdir    = $(pyexecdir)/salome
50
51 # Directory for installing idl files
52 salomeidldir       = $(prefix)/idl/salome
53
54 # Directory for installing resource files
55 salomeresdir       = $(prefix)/share/salome/resources/@MODULE_NAME@
56
57 # Directory for installing plugins files
58 salomepluginsdir   = $(prefix)/share/salome/plugins/@MODULE_NAME@
59
60 # Directories for installing admin files
61 admlocaldir        = $(prefix)/adm_local
62 admlocalunixdir    = $(admlocaldir)/unix
63 admlocalm4dir      = $(admlocaldir)/unix/config_files
64
65 # Directory for install cmake files
66 admlocal_cmakedir  = $(admlocaldir)/cmake_files
67
68 # Shared modules installation directory
69 sharedpkgpythondir = $(salomepythondir)/shared_modules
70
71 # Documentation directory
72 docdir             = $(datadir)/doc/salome
73
74 # common rules
75
76 # meta object implementation files generation (moc)
77 %_moc.cxx: %.h
78         $(MOC) $(MOC_FLAGS) $< -o $@
79
80 # translation (*.qm) files generation (lrelease)
81 %.qm: resources/%.ts
82         $(LRELEASE) $< -qm $@
83
84 # resource files generation (qrcc)
85 qrc_%.cxx: %.qrc
86         $(QRCC) $< -o $@ -name $(*F)
87
88 # qt forms files generation (uic)
89 ui_%.h: %.ui
90         $(UIC) -o $@ $<
91
92 # extra distributed files
93 EXTRA_DIST = $(MOC_FILES:%_moc.cxx=%.h) $(QRC_FILES:qrc_%.cxx=%.qrc) \
94              $(UIC_FILES:ui_%.h=%.ui) $(nodist_salomeres_DATA:%.qm=resources/%.ts) \
95              $(CMAKEFILES)
96
97 # customize clean operation
98 mostlyclean-local:
99         rm -f @builddir@/*_moc.cxx
100         rm -f @builddir@/*.qm
101         rm -f @builddir@/qrc_*.cxx
102         rm -f @builddir@/ui_*.h
103
104 # tests
105 tests: unittest
106
107 unittest: $(UNIT_TEST_PROG)
108         @if test "x$(UNIT_TEST_PROG)" != "x"; then \
109             $(UNIT_TEST_PROG);                     \
110         fi;