1 # Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
18 # See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
25 top_srcdir=@top_srcdir@
28 VPATH=.:$(srcdir):${KERNEL_ROOT_DIR}/idl/salome
35 PY_CLIENT_IDL = $(IDL_FILES)
37 # we copy all idl file in $(top_builddir)/idl
38 inc: $(IDL_FILES:%=$(top_builddir)/idl/%)
40 $(IDL_FILES:%=$(top_builddir)/idl/%):$(top_builddir)/idl/%:%
47 PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
49 pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
54 $(PYTHON_BUILD_SITE)/%_idl.py: %.idl
55 $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
58 # install python client (generated from idl file
59 install: install-pyidl install-idl
61 # create directory $(idldir) and copy idl files into it
62 install-idl: $(IDL_FILES)
63 $(INSTALL) -d $(idldir)
64 $(INSTALL_DATA) $^ $(idldir)
67 install-pyidl: $(IDL_FILES)
68 $(INSTALL) -d $(PYTHON_SITE_INSTALL)
69 @for file in $^ dummy; do \
70 if [ $$file != "dummy" ]; then \
71 $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_SITE_INSTALL) $$file ; \
82 -$(RM) $(IDL_FILES:%=$(top_builddir)/idl/%)