]> SALOME platform Git repositories - modules/geom.git/blob - idl/Makefile.in
Salome HOME
Fix for bug PAL11017 ( Can't select subshapes in the tree to create groups ).
[modules/geom.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
10
11 @COMMENCE@
12
13 IDL_FILES = \
14   GEOM_Gen.idl \
15   GEOM_Superv.idl
16
17 PY_CLIENT_IDL = $(IDL_FILES)
18
19 # we copy all idl file in $(top_builddir)/idl
20 inc: $(top_builddir)/idl/salome $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
21
22 $(top_builddir)/idl/salome:
23         mkdir $@
24
25 $(IDL_FILES:%=$(top_builddir)/idl/salome/%):$(IDL_FILES:%=$(top_srcdir)/idl/%)
26 #       $(CP) $< $@
27         cp -f $^ $(top_builddir)/idl/salome
28
29
30 lib: pyidl
31
32 PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
33
34 pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
35
36 $(PYTHON_BUILD_SITE):
37         $(INSTALL) -d  $@
38
39 $(PYTHON_BUILD_SITE)/%_idl.py: $(top_builddir)/idl/salome/%.idl
40         $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
41
42
43 # install python client (generated from idl file
44 install: install-pyidl install-idl
45
46 # create directory $(idldir) and copy idl files into it
47 install-idl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
48         $(INSTALL) -d  $(idldir)
49         $(INSTALL_DATA) $^ $(idldir)
50
51
52 install-pyidl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
53         $(INSTALL) -d  $(PYTHON_SITE_INSTALL)
54         @for file in $^ dummy; do \
55           if [ $$file != "dummy" ]; then \
56             $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_SITE_INSTALL) $$file ; \
57           fi ; \
58         done ;
59
60 #@ CONCLUDE @
61
62 cleandep:
63         -$(RM) .dep*
64
65 distclean:
66         -$(RM) *.py
67         -$(RM) $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
68         -$(RM) Makefile
69