Salome HOME
Add a patch to make the build of netgen more user-friendly
[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   SMESH_Gen.idl \
15   SMESH_Mesh.idl \
16   SMESH_Hypothesis.idl \
17   SMESH_BasicHypothesis.idl
18
19 PY_CLIENT_IDL = $(IDL_FILES)
20
21 # we copy all idl file in $(top_builddir)/idl
22 inc: $(IDL_FILES:%=$(top_builddir)/idl/%)
23
24 $(IDL_FILES:%=$(top_builddir)/idl/%):$(top_builddir)/idl/%:%
25 #       $(CP) $< $@
26         cp -f $< $@
27
28
29 lib: pyidl
30
31 PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
32
33 pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
34
35 $(PYTHON_BUILD_SITE):
36         $(INSTALL) -d  $@
37
38 $(PYTHON_BUILD_SITE)/%_idl.py: %.idl
39         $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
40
41
42 # install python client (generated from idl file
43 install: install-pyidl install-idl
44
45 # create directory $(idldir) and copy idl files into it
46 install-idl: $(IDL_FILES)
47         $(INSTALL) -d  $(idldir)
48         $(INSTALL_DATA) $^ $(idldir)
49
50
51 install-pyidl: $(IDL_FILES)
52         $(INSTALL) -d  $(PYTHON_SITE_INSTALL)
53         @for file in $^ dummy; do \
54           if [ $$file != "dummy" ]; then \
55             $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_SITE_INSTALL) $$file ; \
56           fi ; \
57         done ;
58
59 #@ CONCLUDE @
60
61 cleandep:
62         -$(RM) .dep*
63
64 distclean:
65         -$(RM) *.py
66         -$(RM) $(IDL_FILES:%=$(top_builddir)/idl/%)
67         -$(RM) Makefile
68