Salome HOME
Fix problem of make distcheck on automake 1.11 (Mandriva 2010): BR_siman_phase1 V6_5_BR TRIPOLI_323 V6_5_0 V6_5_0b1 V6_5_0b2 V6_5_0b3 V6_5_0p1 V6_5_0rc1 V6_5_0rc2
authorvsr <vsr@opencascade.com>
Wed, 18 Apr 2012 12:33:51 +0000 (12:33 +0000)
committervsr <vsr@opencascade.com>
Wed, 18 Apr 2012 12:33:51 +0000 (12:33 +0000)
- we have to uninstall only the staff generated for idl files and nothing more

idl/Makefile.am

index bf8f1a5fcff6e5d24420161705ff7309ef9693d3..e17e8615d941c2c057e064e657a25803af714bf7 100644 (file)
@@ -26,6 +26,8 @@ include $(top_srcdir)/adm_local/unix/make_common_starter.am
 
 BASEIDL_FILES = Sierpinsky.idl
 
+BASEIDL_FILES_PY=$(BASEIDL_FILES:%.idl=%_idl.py)
+
 # This variable defines the files to be installed
 dist_salomeidl_DATA = $(BASEIDL_FILES)
 
@@ -82,9 +84,15 @@ install-exec-local: $(BASEIDL_FILES:%=$(top_srcdir)/idl/%)
          $(OMNIORB_IDL) $(IDLPYFLAGS) -C$(DESTDIR)$(salomepythondir) $$file ; \
        done
 
-# uninstall-local removes too much, but it works in distcheck
+# we want to remove only staff generated for IDL files and nothing more
 uninstall-local:
-       rm -rf $(DESTDIR)$(salomepythondir)/*
+       @for modulen in SIERPINSKY_ORB ; do \
+         test -d $(DESTDIR)$(salomepythondir)/$${modulen} && echo "Removing $(DESTDIR)$(salomepythondir)/$${modulen}" && rm -rf $(DESTDIR)$(salomepythondir)/$${modulen} ; \
+         test -d $(DESTDIR)$(salomepythondir)/$${modulen}__POA && echo "Removing $(DESTDIR)$(salomepythondir)/$${modulen}__POA" && rm -rf $(DESTDIR)$(salomepythondir)/$${modulen}__POA ; \
+       done ; \
+       for filen in $(BASEIDL_FILES_PY) ; do \
+         echo "Removing $(DESTDIR)$(salomepythondir)/$${filen}" && rm -f $(DESTDIR)$(salomepythondir)/$${filen}* ; \
+       done
 
 mostlyclean-local:
        -rm -f *.hh *.cc .depidl