1 # Copyright (C) 2005 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 # generate dependencies for idl file :
24 top_srcdir=@top_srcdir@
27 VPATH=.:$(srcdir):${KERNEL_ROOT_DIR}/idl/salome
31 IDL_FILES = PYHELLO_Gen.idl
33 PY_CLIENT_IDL = $(IDL_FILES)
35 # we copy all idl file in $(top_builddir)/idl
36 inc: $(IDL_FILES:%=$(top_builddir)/idl/%)
38 $(IDL_FILES:%=$(top_builddir)/idl/%):$(top_builddir)/idl/%:%
44 PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
46 pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
51 $(PYTHON_BUILD_SITE)/%_idl.py: %.idl
52 $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
54 # install python client (generated from idl file
55 install: install-pyidl install-idl
57 # create directory $(idldir) and copy idl files into it
58 install-idl: $(IDL_FILES)
59 $(INSTALL) -d $(idldir)
62 install-pyidl: $(IDL_FILES)
63 $(INSTALL) -d $(PYTHON_SITE_INSTALL)
64 @for file in $^ dummy; do \
65 if [ $$file != "dummy" ]; then \
66 $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_SITE_INSTALL) $$file ; \
76 -$(RM) $(IDL_FILES:%=$(top_builddir)/idl/%)