2 # generate dependencies for idl file :
6 top_srcdir=@top_srcdir@
9 VPATH=.:${KERNEL_ROOT_DIR}/idl/salome:${GEOM_ROOT_DIR}/idl/salome:${MED_ROOT_DIR}/idl/salome
16 SMESH_Hypothesis.idl \
17 SMESH_BasicHypothesis.idl \
22 PY_CLIENT_IDL = $(IDL_FILES)
24 # we copy all idl file in $(top_builddir)/idl
25 inc: $(top_builddir)/idl/salome $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
27 $(top_builddir)/idl/salome:
30 $(IDL_FILES:%=$(top_builddir)/idl/salome/%):$(IDL_FILES:%=$(top_srcdir)/idl/%)
32 cp -f $^ $(top_builddir)/idl/salome
37 PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
39 pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
44 $(PYTHON_BUILD_SITE)/%_idl.py: $(top_builddir)/idl/salome/%.idl
45 $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
48 # install python client (generated from idl file
49 install: install-pyidl install-idl
51 # create directory $(idldir) and copy idl files into it
52 install-idl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
53 $(INSTALL) -d $(idldir)
54 $(INSTALL_DATA) $^ $(idldir)
57 install-pyidl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
58 $(INSTALL) -d $(PYTHON_SITE_INSTALL)
59 @for file in $^ dummy; do \
60 if [ $$file != "dummy" ]; then \
61 $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_SITE_INSTALL) $$file ; \
72 -$(RM) $(IDL_FILES:%=$(top_builddir)/idl/salome/%)