From 0b638bb046d2332938e58ba8c3a312386e0e8f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Tue, 13 Nov 2012 10:26:42 +0000 Subject: [PATCH] [CONFIGURATION] * NEW: Remove the possible gambas part before installing a component. git-svn-id: svn://localhost/gambas/trunk@5324 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- component.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/component.am b/component.am index 7b5d94471..b99d74909 100644 --- a/component.am +++ b/component.am @@ -3,6 +3,7 @@ gblib_DATA = $(COMPONENT).component install-data-hook: @$(INSTALL) -d $(DESTDIR)$(gbdatadir)/info + @rm -f $(DESTDIR)$(gblibdir)/$(COMPONENT).gambas; \ @if test -d $(COMPONENT) && test -e $(COMPONENT)/.project ; then \ echo; \ echo "Compiling the $(COMPONENT) project..."; \ @@ -25,6 +26,7 @@ install-data-hook: $(INSTALL) data/* $(DESTDIR)$(gbdatadir)/$(COMPONENT); \ fi @echo "Installing the $(COMPONENT) control icons if needed..."; + @rm -rf $(DESTDIR)$(gbdatadir)/control/$(COMPONENT); \ @if test -d control; then \ $(INSTALL) -d $(DESTDIR)$(gbdatadir)/control; \ $(INSTALL) -d $(DESTDIR)$(gbdatadir)/control/$(COMPONENT); \