]> SALOME platform Git repositories - modules/yacs.git/blob - idl/Makefile.am
Salome HOME
mergefrom branch BR_V511_PR tag mergeto_trunk_03feb09
[modules/yacs.git] / idl / Makefile.am
1 #  Copyright (C) 2006-2008  CEA/DEN, EDF R&D
2 #
3 #  This library is free software; you can redistribute it and/or
4 #  modify it under the terms of the GNU Lesser General Public
5 #  License as published by the Free Software Foundation; either
6 #  version 2.1 of the License.
7 #
8 #  This library is distributed in the hope that it will be useful,
9 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 #  Lesser General Public License for more details.
12 #
13 #  You should have received a copy of the GNU Lesser General Public
14 #  License along with this library; if not, write to the Free Software
15 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19 include $(top_srcdir)/adm/unix/make_begin.am
20
21 IDL_FILES = yacsgui.idl
22 IDL_SRC = yacsguiSK.cc
23 BUILT_SOURCES = $(IDL_SRC) yacsgui.hh
24
25 IDLCXXFLAGS = -I$(KERNEL_ROOT_DIR)/idl/salome -I$(GUI_ROOT_DIR)/idl/salome
26
27 IDLPYFLAGS  = -I$(KERNEL_ROOT_DIR)/idl/salome
28
29 EXTRA_DIST = $(IDL_FILES)
30
31 install-exec-local: install-pyidl
32
33 uninstall-local:
34         rm -rf $(DESTDIR)$(salomepythondir)/yacsgui_idl.py
35         rm -rf $(DESTDIR)$(salomepythondir)/YACS_ORB
36         rm -rf $(DESTDIR)$(salomepythondir)/YACS_ORB__POA
37
38 install-pyidl: $(IDL_FILES)
39         $(INSTALL) -d  $(DESTDIR)$(salomepythondir)
40         @for file in $^ dummy; do \
41           if [ $$file != "dummy" ]; then \
42              $(OMNIORB_IDL) -bpython $(IDLPYFLAGS) -C$(DESTDIR)$(salomepythondir) $$file ; \
43           fi ; \
44         done ;
45
46 dist-hook:
47         rm -f $(distdir)/yacsguiSK.cc
48         rm -f $(distdir)/yacsgui.hh
49
50 clean-local:
51         rm -rf YACS_ORB  YACS_ORB__POA yacsgui.hh  yacsgui_idl.py yacsguiSK.cc
52
53 include $(top_srcdir)/adm/unix/make_end.am