Salome HOME
import SalomePro v1.2c
[modules/yacs.git] / idl / Makefile.in
1 #  Copyright (C) 2003  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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
19 #
20 #
21 #
22 #  File   : Makefile.in
23 #  Module : idl
24
25 top_srcdir=@top_srcdir@
26 top_builddir=..
27 srcdir=@srcdir@
28 VPATH=.:$(srcdir)
29
30 @COMMENCE@
31
32 IDL_FILES = \
33   GEOM_Gen.idl \
34   SALOME_Exception.idl \
35   SALOME_ModuleCatalog.idl \
36   SALOME_DataTypeCatalog.idl \
37   SALOME_RessourcesCatalog.idl \
38   GEOM_Shape.idl \
39   SALOMEDS.idl \
40   SALOMEDS_Attributes.idl \
41   SALOME_Session.idl \
42   SALOME_Component.idl \
43   SALOME_TestComponent.idl \
44   SUPERV.idl \
45   SALOME_Registry.idl \
46   MED.idl \
47   Med_Gen.idl \
48   AddComponent.idl \
49   DivComponent.idl \
50   FactorialComponent.idl \
51   MulComponent.idl \
52   SubComponent.idl \
53   SyrComponent.idl \
54   SyrControlComponent.idl \
55   TypesCheck.idl \
56   TypeData.idl \
57   MPIObject.idl \
58   MPIContainer.idl \
59   NPVecComponent.idl \
60   NPMatComponent.idl \
61   NPSolveComponent.idl \
62   SMESH_Gen.idl \
63   SMESH_Mesh.idl \
64   SMESH_Hypothesis.idl \
65   SMESH_BasicHypothesis.idl \
66   Calculator.idl \
67   Logger.idl \
68   VISU_Gen.idl
69
70 PY_CLIENT_IDL = $(IDL_FILES)
71
72 # we copy all idl file in $(top_builddir)/share/salome/idl
73 inc: $(IDL_FILES:%=$(top_builddir)/share/salome/idl/%)
74
75 $(IDL_FILES:%=$(top_builddir)/share/salome/idl/%):$(top_builddir)/share/salome/idl/%:%
76 #       $(CP) $< $@
77         cp -f $< $@
78
79
80 lib: pyidl
81
82 PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/salome
83
84 pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
85
86 $(PYTHON_BUILD_SITE):
87         $(INSTALL) -d  $@
88
89 $(PYTHON_BUILD_SITE)/%_idl.py: %.idl
90         $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
91
92
93 # install python client (generated from idl file
94 install: install-pyidl install-idl
95
96 # create directory $(idldir) and copy idl files into it
97 install-idl: $(IDL_FILES)
98         $(INSTALL) -d  $(idldir)
99         $(INSTALL_DATA) $^ $(idldir)
100
101
102 install-pyidl: $(IDL_FILES)
103         $(INSTALL) -d  $(PYTHON_SITE_INSTALL)
104         @for file in $^ dummy; do \
105           if [ $$file != "dummy" ]; then \
106             $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_SITE_INSTALL) $$file ; \
107           fi ; \
108         done ;
109
110 #@ CONCLUDE @
111
112 cleandep:
113         -$(RM) .dep*
114
115 distclean:
116         -$(RM) *.py
117         -$(RM) $(IDL_FILES:%=$(top_builddir)/share/salome/idl/%)
118         -$(RM) Makefile
119