Salome HOME
NRI : Add MODULE version info.
[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=.:$(srcdir):${KERNEL_ROOT_DIR}/idl/salome:${GEOM_ROOT_DIR}/idl/salome:${MED_ROOT_DIR}/idl/salome
10
11 @COMMENCE@
12
13 IDL_FILES = \
14   SALOME_Component.idl \
15   SALOMEDS.idl \
16   SALOMEDS_Attributes.idl \
17   SALOME_Exception.idl \
18   Logger.idl \
19   SALOME_ModuleCatalog.idl \
20   MED.idl \
21   GEOM_Shape.idl \
22   GEOM_Gen.idl \
23   SMESH_Gen.idl \
24   SMESH_Mesh.idl \
25   SMESH_Hypothesis.idl \
26   SMESH_BasicHypothesis.idl
27
28 PY_CLIENT_IDL = $(IDL_FILES)
29
30 # we copy all idl file in $(top_builddir)/idl
31 inc: $(IDL_FILES:%=$(top_builddir)/idl/%)
32
33 $(IDL_FILES:%=$(top_builddir)/idl/%):$(top_builddir)/idl/%:%
34 #       $(CP) $< $@
35         cp -f $< $@
36
37
38 lib: pyidl
39
40 PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
41
42 pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
43
44 $(PYTHON_BUILD_SITE):
45         $(INSTALL) -d  $@
46
47 $(PYTHON_BUILD_SITE)/%_idl.py: %.idl
48         $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
49
50
51 # install python client (generated from idl file
52 install: install-pyidl install-idl
53
54 # create directory $(idldir) and copy idl files into it
55 install-idl: $(IDL_FILES)
56         $(INSTALL) -d  $(idldir)
57         $(INSTALL_DATA) $^ $(idldir)
58
59
60 install-pyidl: $(IDL_FILES)
61         $(INSTALL) -d  $(PYTHON_SITE_INSTALL)
62         @for file in $^ dummy; do \
63           if [ $$file != "dummy" ]; then \
64             $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_SITE_INSTALL) $$file ; \
65           fi ; \
66         done ;
67
68 #@ CONCLUDE @
69
70 cleandep:
71         -$(RM) .dep*
72
73 distclean:
74         -$(RM) *.py
75         -$(RM) $(IDL_FILES:%=$(top_builddir)/idl/%)
76         -$(RM) Makefile
77