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 \
23 SIGNALSComponent.idl \
24 UndefinedSymbolComponent.idl \
27 PY_CLIENT_IDL = $(IDL_FILES)
29 # we copy all idl file in $(top_builddir)/idl
30 inc: $(top_builddir)/idl/salome $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
32 $(top_builddir)/idl/salome:
35 $(IDL_FILES:%=$(top_builddir)/idl/salome/%):$(IDL_FILES:%=$(top_srcdir)/idl/%)
37 cp -f $^ $(top_builddir)/idl/salome
42 PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
44 pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
49 $(PYTHON_BUILD_SITE)/%_idl.py: $(top_builddir)/idl/salome/%.idl
50 $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
53 # install python client (generated from idl file
54 install: install-pyidl install-idl
56 # create directory $(idldir) and copy idl files into it
57 install-idl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
58 $(INSTALL) -d $(idldir)
59 $(INSTALL_DATA) $^ $(idldir)
62 install-pyidl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
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 ; \
77 -$(RM) $(IDL_FILES:%=$(top_builddir)/idl/salome/%)