]> SALOME platform Git repositories - modules/superv.git/blob - idl/Makefile.in
Salome HOME
024389058cec11c1869343a2a8df2fcee25aa049
[modules/superv.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):${KERNEL_ROOT_DIR}/idl/salome
29
30 @COMMENCE@
31
32 IDL_FILES = \
33   SUPERV.idl \
34   AddComponent.idl \
35   DivComponent.idl \
36   FactorialComponent.idl \
37   MulComponent.idl \
38   SubComponent.idl \
39   SyrComponent.idl \
40   SyrControlComponent.idl \
41   TypesCheck.idl
42
43 PY_CLIENT_IDL = $(IDL_FILES)
44
45 # we copy all idl file in $(top_builddir)/idl
46 inc: $(IDL_FILES:%=$(top_builddir)/idl/%)
47
48 $(IDL_FILES:%=$(top_builddir)/idl/%):$(top_builddir)/idl/%:%
49 #       $(CP) $< $@
50         cp -f $< $@
51
52
53 lib: pyidl
54
55 PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
56
57 pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
58
59 $(PYTHON_BUILD_SITE):
60         $(INSTALL) -d  $@
61
62 $(PYTHON_BUILD_SITE)/%_idl.py: %.idl
63         $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
64
65
66 # install python client (generated from idl file
67 install: install-pyidl install-idl
68
69 # create directory $(idldir) and copy idl files into it
70 install-idl: $(IDL_FILES)
71         $(INSTALL) -d  $(idldir)
72         $(INSTALL_DATA) $^ $(idldir)
73
74
75 install-pyidl: $(IDL_FILES)
76         $(INSTALL) -d  $(PYTHON_SITE_INSTALL)
77         @for file in $^ dummy; do \
78           if [ $$file != "dummy" ]; then \
79             $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_SITE_INSTALL) $$file ; \
80           fi ; \
81         done ;
82
83 #@ CONCLUDE @
84
85 cleandep:
86         -$(RM) .dep*
87
88 distclean:
89         -$(RM) *.py
90         -$(RM) $(IDL_FILES:%=$(top_builddir)/idl/%)
91         -$(RM) Makefile
92