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