2 # generate dependencies for idl file :
6 top_srcdir=@top_srcdir@
9 VPATH=.:$(srcdir):${KERNEL_ROOT_DIR}/idl/salome
14 SALOME_Exception.idl \
15 SALOME_ModuleCatalog.idl \
16 SALOME_DataTypeCatalog.idl \
17 SALOME_RessourcesCatalog.idl \
19 SALOMEDS_Attributes.idl \
21 SALOME_Component.idl \
22 SALOME_TestComponent.idl \
28 # SMESH_Hypothesis.idl \
29 # SMESH_BasicHypothesis.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/%:%
45 PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
47 pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
52 $(PYTHON_BUILD_SITE)/%_idl.py: %.idl
53 $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
56 # install python client (generated from idl file
57 install: install-pyidl install-idl
59 # create directory $(idldir) and copy idl files into it
60 install-idl: $(IDL_FILES)
61 $(INSTALL) -d $(idldir)
62 $(INSTALL_DATA) $^ $(idldir)
65 install-pyidl: $(IDL_FILES)
66 $(INSTALL) -d $(PYTHON_SITE_INSTALL)
67 @for file in $^ dummy; do \
68 if [ $$file != "dummy" ]; then \
69 $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_SITE_INSTALL) $$file ; \
80 -$(RM) $(IDL_FILES:%=$(top_builddir)/idl/%)