]> SALOME platform Git repositories - modules/smesh.git/blob - idl/Makefile.in
Salome HOME
IPAL15344 (SMESH_MeshEditor.idl: signature of MergeEqualElements() was changed):
[modules/smesh.git] / idl / Makefile.in
1 #  Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 #
4 #  This library is free software; you can redistribute it and/or
5 #  modify it under the terms of the GNU Lesser General Public
6 #  License as published by the Free Software Foundation; either
7 #  version 2.1 of the License.
8 #
9 #  This library is distributed in the hope that it will be useful,
10 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
11 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 #  Lesser General Public License for more details.
13 #
14 #  You should have received a copy of the GNU Lesser General Public
15 #  License along with this library; if not, write to the Free Software
16 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20 #
21 # generate dependencies for idl file :
22 #
23
24 # source path
25 top_srcdir=@top_srcdir@
26 top_builddir=..
27 srcdir=@srcdir@
28 VPATH=.:${KERNEL_ROOT_DIR}/idl/salome:${GEOM_ROOT_DIR}/idl/salome:${MED_ROOT_DIR}/idl/salome
29
30 @COMMENCE@
31
32 IDL_FILES = \
33   SMESH_Gen.idl \
34   SMESH_Mesh.idl \
35   SMESH_MeshEditor.idl \
36   SMESH_Hypothesis.idl \
37   SMESH_BasicHypothesis.idl \
38   SMESH_Filter.idl \
39   SMESH_Group.idl \
40   SMESH_Pattern.idl
41
42 PY_CLIENT_IDL = $(IDL_FILES)
43
44 # we copy all idl file in $(top_builddir)/idl
45 inc: $(top_builddir)/idl/salome $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
46
47 $(top_builddir)/idl/salome:
48         mkdir $@
49
50 $(IDL_FILES:%=$(top_builddir)/idl/salome/%):$(IDL_FILES:%=$(top_srcdir)/idl/%)
51 #       $(CP) $< $@
52         cp -f $^ $(top_builddir)/idl/salome
53
54
55 lib: pyidl
56
57 PYTHON_BUILD_SITE=$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
58
59 pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
60
61 $(PYTHON_BUILD_SITE):
62         $(INSTALL) -d  $@
63
64 $(PYTHON_BUILD_SITE)/%_idl.py: $(top_builddir)/idl/salome/%.idl
65         $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
66
67
68 # install python client (generated from idl file
69 install: install-pyidl install-idl
70
71 # create directory $(idldir) and copy idl files into it
72 install-idl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
73         $(INSTALL) -d  $(idldir)
74         $(INSTALL_DATA) $^ $(idldir)
75
76
77 install-pyidl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
78         $(INSTALL) -d  $(PYTHON_SITE_INSTALL)
79         @for file in $^ dummy; do \
80           if [ $$file != "dummy" ]; then \
81             $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_SITE_INSTALL) $$file ; \
82           fi ; \
83         done ;
84
85 #@ CONCLUDE @
86
87 cleandep:
88         -$(RM) .dep*
89
90 distclean:
91         -$(RM) *.py
92         -$(RM) $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
93         -$(RM) Makefile
94