-# Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
-# See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
#
+# generate dependencies for idl file :
#
-#
-# File : Makefile.in
-# Module : idl
+# source path
top_srcdir=@top_srcdir@
top_builddir=..
srcdir=@srcdir@
-VPATH=.:$(srcdir)
+VPATH=.
@COMMENCE@
IDL_FILES = \
- GEOM_Gen.idl \
SALOME_Exception.idl \
+ SALOME_Comm.idl \
SALOME_ModuleCatalog.idl \
SALOME_DataTypeCatalog.idl \
SALOME_RessourcesCatalog.idl \
- GEOM_Shape.idl \
SALOMEDS.idl \
SALOMEDS_Attributes.idl \
SALOME_Session.idl \
SALOME_Component.idl \
SALOME_TestComponent.idl \
- SUPERV.idl \
SALOME_Registry.idl \
- MED.idl \
- Med_Gen.idl \
- AddComponent.idl \
- DivComponent.idl \
- FactorialComponent.idl \
- MulComponent.idl \
- SubComponent.idl \
- SyrComponent.idl \
- SyrControlComponent.idl \
- TypesCheck.idl \
TypeData.idl \
MPIObject.idl \
MPIContainer.idl \
- NPVecComponent.idl \
- NPMatComponent.idl \
- NPSolveComponent.idl \
- SMESH_Gen.idl \
- SMESH_Mesh.idl \
- SMESH_Hypothesis.idl \
- SMESH_BasicHypothesis.idl \
- Calculator.idl \
Logger.idl \
- VISU_Gen.idl
+ SALOME_GenericObj.idl \
+ SALOME_TestModuleCatalog.idl
PY_CLIENT_IDL = $(IDL_FILES)
-# we copy all idl file in $(top_builddir)/share/salome/idl
-inc: $(IDL_FILES:%=$(top_builddir)/share/salome/idl/%)
+# we copy all idl file in $(top_builddir)/idl
+inc: $(top_builddir)/idl/salome $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
+
+$(top_builddir)/idl/salome:
+ mkdir -p $@
-$(IDL_FILES:%=$(top_builddir)/share/salome/idl/%):$(top_builddir)/share/salome/idl/%:%
+$(IDL_FILES:%=$(top_builddir)/idl/salome/%):$(IDL_FILES:%=$(top_srcdir)/idl/%)
# $(CP) $< $@
- cp -f $< $@
+ cp -f $^ $(top_builddir)/idl/salome
lib: pyidl
-PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/salome
+PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
$(PYTHON_BUILD_SITE):
$(INSTALL) -d $@
-$(PYTHON_BUILD_SITE)/%_idl.py: %.idl
+$(PYTHON_BUILD_SITE)/%_idl.py: $(top_builddir)/idl/salome/%.idl
$(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
# install python client (generated from idl file
-install: install-pyidl install-idl
+install: $(top_builddir)/idl/salome install-pyidl install-idl
# create directory $(idldir) and copy idl files into it
-install-idl: $(IDL_FILES)
+install-idl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
$(INSTALL) -d $(idldir)
- $(INSTALL_DATA) $^ $(idldir)
+ cp -p -f $^ $(idldir)
-install-pyidl: $(IDL_FILES)
+install-pyidl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
$(INSTALL) -d $(PYTHON_SITE_INSTALL)
@for file in $^ dummy; do \
if [ $$file != "dummy" ]; then \
distclean:
-$(RM) *.py
- -$(RM) $(IDL_FILES:%=$(top_builddir)/share/salome/idl/%)
+ -$(RM) $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
-$(RM) Makefile