Salome HOME
merge from branch DEV tag mergeto_trunk_04apr08
[modules/yacs.git] / idl / Makefile.am
1
2 include $(top_srcdir)/adm/unix/make_begin.am
3
4 IDL_FILES = yacsgui.idl
5 IDL_SRC = yacsguiSK.cc
6 BUILT_SOURCES = $(IDL_SRC) yacsgui.hh
7
8 IDLCXXFLAGS = -I$(KERNEL_ROOT_DIR)/idl/salome -I$(GUI_ROOT_DIR)/idl/salome
9
10 IDLPYFLAGS  = -I$(KERNEL_ROOT_DIR)/idl/salome
11
12 EXTRA_DIST = $(IDL_FILES)
13
14 install-exec-local: install-pyidl
15
16 uninstall-local:
17         rm -rf $(DESTDIR)$(salomepythondir)/yacsgui_idl.py
18         rm -rf $(DESTDIR)$(salomepythondir)/YACS_ORB
19         rm -rf $(DESTDIR)$(salomepythondir)/YACS_ORB__POA
20
21 install-pyidl: $(IDL_FILES)
22         $(INSTALL) -d  $(DESTDIR)$(salomepythondir)
23         @for file in $^ dummy; do \
24           if [ $$file != "dummy" ]; then \
25              $(OMNIORB_IDL) -bpython $(IDLPYFLAGS) -C$(DESTDIR)$(salomepythondir) $$file ; \
26           fi ; \
27         done ;
28
29 dist-hook:
30         rm -f $(distdir)/yacsguiSK.cc
31         rm -f $(distdir)/yacsgui.hh
32
33 clean-local:
34         rm -rf YACS_ORB  YACS_ORB__POA yacsgui.hh  yacsgui_idl.py yacsguiSK.cc
35
36 include $(top_srcdir)/adm/unix/make_end.am