]> SALOME platform Git repositories - samples/component.git/blob - idl/Makefile.in
Salome HOME
New methods to check ObjRef arguments
[samples/component.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   AddComponent.idl \
15   DivComponent.idl \
16   FactorialComponent.idl \
17   MulComponent.idl \
18   SubComponent.idl \
19   SyrComponent.idl \
20   SyrControlComponent.idl \
21   TypesCheck.idl \
22   DataStreamComponent.idl \
23   Calculator.idl
24
25 PY_CLIENT_IDL = $(IDL_FILES)
26
27 # we copy all idl file in $(top_builddir)/idl
28 inc: $(top_builddir)/idl/salome $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
29
30 $(top_builddir)/idl/salome:
31         mkdir $@
32
33 $(IDL_FILES:%=$(top_builddir)/idl/salome/%):$(IDL_FILES:%=$(top_srcdir)/idl/%)
34 #       $(CP) $< $@
35         cp -f $^ $(top_builddir)/idl/salome
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: $(top_builddir)/idl/salome/%.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:%=$(top_builddir)/idl/salome/%)
56         $(INSTALL) -d  $(idldir)
57         $(INSTALL_DATA) $^ $(idldir)
58
59
60 install-pyidl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
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/salome/%)
76         -$(RM) Makefile
77