2 # generate dependencies for idl file :
6 top_srcdir=@top_srcdir@
9 VPATH=.:${KERNEL_ROOT_DIR}/idl/salome
17 PY_CLIENT_IDL = $(IDL_FILES)
19 # we copy all idl file in $(top_builddir)/idl
20 inc: $(top_builddir)/idl/salome $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
22 $(top_builddir)/idl/salome:
25 $(IDL_FILES:%=$(top_builddir)/idl/salome/%):$(IDL_FILES:%=$(top_srcdir)/idl/%)
27 cp -f $^ $(top_builddir)/idl/salome
32 PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
34 pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
39 $(PYTHON_BUILD_SITE)/%_idl.py: $(top_builddir)/idl/salome/%.idl
40 $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
43 # install python client (generated from idl file
44 install: install-pyidl install-idl
46 # create directory $(idldir) and copy idl files into it
47 install-idl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
48 $(INSTALL) -d $(idldir)
49 $(INSTALL_DATA) $^ $(idldir)
52 install-pyidl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
53 $(INSTALL) -d $(PYTHON_SITE_INSTALL)
54 @for file in $^ dummy; do \
55 if [ $$file != "dummy" ]; then \
56 $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_SITE_INSTALL) $$file ; \
67 -$(RM) $(IDL_FILES:%=$(top_builddir)/idl/salome/%)