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