2 # generate dependencies for idl file :
6 top_srcdir=@top_srcdir@
9 VPATH=.:${KERNEL_ROOT_DIR}/idl/salome
16 FactorialComponent.idl \
20 SyrControlComponent.idl \
22 DataStreamComponent.idl \
25 PY_CLIENT_IDL = $(IDL_FILES)
27 # we copy all idl file in $(top_builddir)/idl
28 inc: $(top_builddir)/idl/salome $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
30 $(top_builddir)/idl/salome:
33 $(IDL_FILES:%=$(top_builddir)/idl/salome/%):$(IDL_FILES:%=$(top_srcdir)/idl/%)
35 cp -f $^ $(top_builddir)/idl/salome
40 PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
42 pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
47 $(PYTHON_BUILD_SITE)/%_idl.py: $(top_builddir)/idl/salome/%.idl
48 $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
51 # install python client (generated from idl file
52 install: install-pyidl install-idl
54 # create directory $(idldir) and copy idl files into it
55 install-idl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
56 $(INSTALL) -d $(idldir)
57 $(INSTALL_DATA) $^ $(idldir)
60 install-pyidl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
61 $(INSTALL) -d $(PYTHON_SITE_INSTALL)
62 @for file in $^ dummy; do \
63 if [ $$file != "dummy" ]; then \
64 $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_SITE_INSTALL) $$file ; \
75 -$(RM) $(IDL_FILES:%=$(top_builddir)/idl/salome/%)