Salome HOME
PAL10494 (SMESH python dump uses idl interface). Python dump converted to smesh...
[modules/smesh.git] / idl / Makefile.in
1 #
2 # generate dependencies for idl file :
3 #
4
5 # source path
6 top_srcdir=@top_srcdir@
7 top_builddir=..
8 srcdir=@srcdir@
9 VPATH=.:${KERNEL_ROOT_DIR}/idl/salome:${GEOM_ROOT_DIR}/idl/salome:${MED_ROOT_DIR}/idl/salome
10
11 @COMMENCE@
12
13 IDL_FILES = \
14   SMESH_Gen.idl \
15   SMESH_Mesh.idl \
16   SMESH_Hypothesis.idl \
17   SMESH_BasicHypothesis.idl \
18   SMESH_Filter.idl \
19   SMESH_Group.idl \
20   SMESH_Pattern.idl
21
22 PY_CLIENT_IDL = $(IDL_FILES)
23
24 # we copy all idl file in $(top_builddir)/idl
25 inc: $(top_builddir)/idl/salome $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
26
27 $(top_builddir)/idl/salome:
28         mkdir $@
29
30 $(IDL_FILES:%=$(top_builddir)/idl/salome/%):$(IDL_FILES:%=$(top_srcdir)/idl/%)
31 #       $(CP) $< $@
32         cp -f $^ $(top_builddir)/idl/salome
33
34
35 lib: pyidl
36
37 PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
38
39 pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
40
41 $(PYTHON_BUILD_SITE):
42         $(INSTALL) -d  $@
43
44 $(PYTHON_BUILD_SITE)/%_idl.py: $(top_builddir)/idl/salome/%.idl
45         $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
46
47
48 # install python client (generated from idl file
49 install: install-pyidl install-idl
50
51 # create directory $(idldir) and copy idl files into it
52 install-idl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
53         $(INSTALL) -d  $(idldir)
54         $(INSTALL_DATA) $^ $(idldir)
55
56
57 install-pyidl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
58         $(INSTALL) -d  $(PYTHON_SITE_INSTALL)
59         @for file in $^ dummy; do \
60           if [ $$file != "dummy" ]; then \
61             $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_SITE_INSTALL) $$file ; \
62           fi ; \
63         done ;
64
65 #@ CONCLUDE @
66
67 cleandep:
68         -$(RM) .dep*
69
70 distclean:
71         -$(RM) *.py
72         -$(RM) $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
73         -$(RM) Makefile
74