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