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