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