Salome HOME
merge from branch DEV tag mergeto_trunk_04apr08
[modules/yacs.git] / idl / Makefile.am
index 0994d10e968ac33f54d11f1051fc9e0e9cd0870b..d3f7b29a268345a34903a17936df9cdb47bdbe1f 100644 (file)
@@ -3,21 +3,34 @@ include $(top_srcdir)/adm/unix/make_begin.am
 
 IDL_FILES = yacsgui.idl
 IDL_SRC = yacsguiSK.cc
-BUILT_SOURCES = $(IDL_SRC) yacsgui_idl.py 
+BUILT_SOURCES = $(IDL_SRC) yacsgui.hh
 
-OMNIORB_IDL+= -I$(KERNEL_ROOT_DIR)/idl/salome -I$(GUI_ROOT_DIR)/idl/salome
+IDLCXXFLAGS = -I$(KERNEL_ROOT_DIR)/idl/salome -I$(GUI_ROOT_DIR)/idl/salome
 
-IDLPYFLAGS  = \
-  -I$(KERNEL_ROOT_DIR)/idl/salome
+IDLPYFLAGS  = -I$(KERNEL_ROOT_DIR)/idl/salome
+
+EXTRA_DIST = $(IDL_FILES)
 
 install-exec-local: install-pyidl
 
+uninstall-local:
+       rm -rf $(DESTDIR)$(salomepythondir)/yacsgui_idl.py
+       rm -rf $(DESTDIR)$(salomepythondir)/YACS_ORB
+       rm -rf $(DESTDIR)$(salomepythondir)/YACS_ORB__POA
+
 install-pyidl: $(IDL_FILES)
-       $(INSTALL) -d  $(pkgpythondir)
+       $(INSTALL) -d  $(DESTDIR)$(salomepythondir)
        @for file in $^ dummy; do \
           if [ $$file != "dummy" ]; then \
-             $(OMNIORB_IDL) -bpython $(IDLPYFLAGS) -C$(pkgpythondir) $$file ; \
+             $(OMNIORB_IDL) -bpython $(IDLPYFLAGS) -C$(DESTDIR)$(salomepythondir) $$file ; \
           fi ; \
         done ;
 
+dist-hook:
+       rm -f $(distdir)/yacsguiSK.cc
+       rm -f $(distdir)/yacsgui.hh
+
+clean-local:
+       rm -rf YACS_ORB  YACS_ORB__POA yacsgui.hh  yacsgui_idl.py yacsguiSK.cc
+
 include $(top_srcdir)/adm/unix/make_end.am