2 # generate dependencies for idl file :
6 top_srcdir=@top_srcdir@
9 VPATH=.:$(srcdir):${KERNEL_ROOT_DIR}/idl/salome
17 PY_CLIENT_IDL = $(IDL_FILES)
19 # we copy all idl file in $(top_builddir)/idl
20 inc: $(IDL_FILES:%=$(top_builddir)/idl/%)
22 $(IDL_FILES:%=$(top_builddir)/idl/%):$(top_builddir)/idl/%:%
29 PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
31 pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
36 $(PYTHON_BUILD_SITE)/%_idl.py: %.idl
37 $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
40 # install python client (generated from idl file
41 install: install-pyidl install-idl
43 # create directory $(idldir) and copy idl files into it
44 install-idl: $(IDL_FILES)
45 $(INSTALL) -d $(idldir)
46 $(INSTALL_DATA) $^ $(idldir)
49 install-pyidl: $(IDL_FILES)
50 $(INSTALL) -d $(PYTHON_SITE_INSTALL)
51 @for file in $^ dummy; do \
52 if [ $$file != "dummy" ]; then \
53 $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_SITE_INSTALL) $$file ; \
64 -$(RM) $(IDL_FILES:%=$(top_builddir)/idl/%)