1 # Copyright (C) 2006-2008 CEA/DEN, EDF R&D
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 include $(top_srcdir)/adm/unix/make_begin.am
21 IDL_FILES = yacsgui.idl
22 IDL_SRC = yacsguiSK.cc
23 BUILT_SOURCES = $(IDL_SRC) yacsgui.hh
25 IDLCXXFLAGS = -I$(KERNEL_ROOT_DIR)/idl/salome -I$(GUI_ROOT_DIR)/idl/salome
27 IDLPYFLAGS = -I$(KERNEL_ROOT_DIR)/idl/salome
29 EXTRA_DIST = $(IDL_FILES)
31 install-exec-local: install-pyidl
34 rm -rf $(DESTDIR)$(salomepythondir)/yacsgui_idl.py
35 rm -rf $(DESTDIR)$(salomepythondir)/YACS_ORB
36 rm -rf $(DESTDIR)$(salomepythondir)/YACS_ORB__POA
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 ; \
47 rm -f $(distdir)/yacsguiSK.cc
48 rm -f $(distdir)/yacsgui.hh
51 rm -rf YACS_ORB YACS_ORB__POA yacsgui.hh yacsgui_idl.py yacsguiSK.cc
53 include $(top_srcdir)/adm/unix/make_end.am