2 # generate dependencies for idl file :
6 top_srcdir=@top_srcdir@
9 VPATH=.:$(srcdir):${KERNEL_ROOT_DIR}/idl/salome
16 SyrControlComponent.idl \
19 FactorialComponent.idl \
22 PY_CLIENT_IDL = $(IDL_FILES)
24 # we copy all idl file in $(top_builddir)/idl
25 inc: $(IDL_FILES:%=$(top_builddir)/idl/%)
27 $(IDL_FILES:%=$(top_builddir)/idl/%):$(top_builddir)/idl/%:%
34 PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
36 pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
41 $(PYTHON_BUILD_SITE)/%_idl.py: %.idl
42 $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
45 # install python client (generated from idl file
46 install: install-pyidl install-idl
48 # create directory $(idldir) and copy idl files into it
49 install-idl: $(IDL_FILES)
50 $(INSTALL) -d $(idldir)
51 $(INSTALL_DATA) $^ $(idldir)
54 install-pyidl: $(IDL_FILES)
55 $(INSTALL) -d $(PYTHON_SITE_INSTALL)
56 @for file in $^ dummy; do \
57 if [ $$file != "dummy" ]; then \
58 $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_SITE_INSTALL) $$file ; \
69 -$(RM) $(IDL_FILES:%=$(top_builddir)/idl/%)