]> SALOME platform Git repositories - samples/component.git/blob - idl/Makefile.in
Salome HOME
Test executables for study of Supervision Memory Leaks
[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   SIGNALSComponent.idl \
24   UndefinedSymbolComponent.idl \
25   Calculator.idl
26
27 PY_CLIENT_IDL = $(IDL_FILES)
28
29 # we copy all idl file in $(top_builddir)/idl
30 inc: $(top_builddir)/idl/salome $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
31
32 $(top_builddir)/idl/salome:
33         mkdir $@
34
35 $(IDL_FILES:%=$(top_builddir)/idl/salome/%):$(IDL_FILES:%=$(top_srcdir)/idl/%)
36 #       $(CP) $< $@
37         cp -f $^ $(top_builddir)/idl/salome
38
39
40 lib: pyidl
41
42 PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
43
44 pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
45
46 $(PYTHON_BUILD_SITE):
47         $(INSTALL) -d  $@
48
49 $(PYTHON_BUILD_SITE)/%_idl.py: $(top_builddir)/idl/salome/%.idl
50         $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
51
52
53 # install python client (generated from idl file
54 install: install-pyidl install-idl
55
56 # create directory $(idldir) and copy idl files into it
57 install-idl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
58         $(INSTALL) -d  $(idldir)
59         $(INSTALL_DATA) $^ $(idldir)
60
61
62 install-pyidl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
63         $(INSTALL) -d  $(PYTHON_SITE_INSTALL)
64         @for file in $^ dummy; do \
65           if [ $$file != "dummy" ]; then \
66             $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_SITE_INSTALL) $$file ; \
67           fi ; \
68         done ;
69
70 #@ CONCLUDE @
71
72 cleandep:
73         -$(RM) .dep*
74
75 distclean:
76         -$(RM) *.py
77         -$(RM) $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
78         -$(RM) Makefile
79