[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] uninstall: push tools uninstall down into tools/Makefile


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Tue, 04 Sep 2012 14:44:11 +0000
  • Delivery-date: Tue, 04 Sep 2012 14:44:22 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Ian Campbell <Ian.Campbell@xxxxxxxxxx>
# Date 1346406128 -3600
# Node ID eac962bcabdec53a7d0f25a8203b601db4493b93
# Parent  be1f4a84783178467e2e4ad2bb5e124b6a9bb244
uninstall: push tools uninstall down into tools/Makefile

Many of the rules here depend on having run configure and the
variables which it defines in config/Tools.mk

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Looks-good: Jan Beulich <JBeulich@xxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---


diff -r be1f4a847831 -r eac962bcabde Makefile
--- a/Makefile  Fri Aug 31 10:42:08 2012 +0100
+++ b/Makefile  Fri Aug 31 10:42:08 2012 +0100
@@ -229,34 +229,7 @@ uninstall:
        rm -f  $(D)$(SYSCONFIG_DIR)/xendomains
        rm -f  $(D)$(SYSCONFIG_DIR)/xencommons
        rm -rf $(D)/var/run/xen* $(D)/var/lib/xen*
-       rm -rf $(D)$(LIBDIR)/xen* $(D)$(BINDIR)/lomount
-       rm -rf $(D)$(BINDIR)/cpuperf-perfcntr $(D)$(BINDIR)/cpuperf-xen
-       rm -rf $(D)$(BINDIR)/xc_shadow
-       rm -rf $(D)$(BINDIR)/pygrub
-       rm -rf $(D)$(BINDIR)/setsize $(D)$(BINDIR)/tbctl
-       rm -rf $(D)$(BINDIR)/xsls
-       rm -rf $(D)$(BINDIR)/xenstore* $(D)$(BINDIR)/xentrace*
-       rm -rf $(D)$(BINDIR)/xen-detect $(D)$(BINDIR)/xencons
-       rm -rf $(D)$(BINDIR)/xenpvnetboot $(D)$(BINDIR)/qemu-*-xen
-       rm -rf $(D)$(INCLUDEDIR)/xenctrl* $(D)$(INCLUDEDIR)/xenguest.h
-       rm -rf $(D)$(INCLUDEDIR)/xs_lib.h $(D)$(INCLUDEDIR)/xs.h
-       rm -rf $(D)$(INCLUDEDIR)/xenstore-compat/xs_lib.h 
$(D)$(INCLUDEDIR)/xenstore-compat/xs.h
-       rm -rf $(D)$(INCLUDEDIR)/xenstore_lib.h $(D)$(INCLUDEDIR)/xenstore.h
-       rm -rf $(D)$(INCLUDEDIR)/xen
-       rm -rf $(D)$(INCLUDEDIR)/_libxl* $(D)$(INCLUDEDIR)/libxl*
-       rm -rf $(D)$(INCLUDEDIR)/xenstat.h $(D)$(INCLUDEDIR)/xentoollog.h
-       rm -rf $(D)$(LIBDIR)/libxenctrl* $(D)$(LIBDIR)/libxenguest*
-       rm -rf $(D)$(LIBDIR)/libxenstore* $(D)$(LIBDIR)/libxlutil*
-       rm -rf $(D)$(LIBDIR)/python/xen $(D)$(LIBDIR)/python/grub
-       rm -rf $(D)$(LIBDIR)/xen/
-       rm -rf $(D)$(LIBEXEC)/xen*
-       rm -rf $(D)$(SBINDIR)/setmask
-       rm -rf $(D)$(SBINDIR)/xen* $(D)$(SBINDIR)/netfix $(D)$(SBINDIR)/xm
-       rm -rf $(D)$(SHAREDIR)/doc/xen
-       rm -rf $(D)$(SHAREDIR)/xen
-       rm -rf $(D)$(SHAREDIR)/qemu-xen
-       rm -rf $(D)$(MAN1DIR)/xen*
-       rm -rf $(D)$(MAN8DIR)/xen*
+       make -C tools uninstall
        rm -rf $(D)/boot/tboot*
 
 # Legacy targets for compatibility
diff -r be1f4a847831 -r eac962bcabde tools/Makefile
--- a/tools/Makefile    Fri Aug 31 10:42:08 2012 +0100
+++ b/tools/Makefile    Fri Aug 31 10:42:08 2012 +0100
@@ -71,6 +71,38 @@ install: subdirs-install
        $(INSTALL_DIR) $(DESTDIR)/var/lib/xen
        $(INSTALL_DIR) $(DESTDIR)/var/lock/subsys
 
+.PHONY: uninstall
+uninstall: D=$(DESTDIR)
+uninstall:
+       rm -rf $(D)$(LIBDIR)/xen* $(D)$(BINDIR)/lomount
+       rm -rf $(D)$(BINDIR)/cpuperf-perfcntr $(D)$(BINDIR)/cpuperf-xen
+       rm -rf $(D)$(BINDIR)/xc_shadow
+       rm -rf $(D)$(BINDIR)/pygrub
+       rm -rf $(D)$(BINDIR)/setsize $(D)$(BINDIR)/tbctl
+       rm -rf $(D)$(BINDIR)/xsls
+       rm -rf $(D)$(BINDIR)/xenstore* $(D)$(BINDIR)/xentrace*
+       rm -rf $(D)$(BINDIR)/xen-detect $(D)$(BINDIR)/xencons
+       rm -rf $(D)$(BINDIR)/xenpvnetboot $(D)$(BINDIR)/qemu-*-xen
+       rm -rf $(D)$(INCLUDEDIR)/xenctrl* $(D)$(INCLUDEDIR)/xenguest.h
+       rm -rf $(D)$(INCLUDEDIR)/xs_lib.h $(D)$(INCLUDEDIR)/xs.h
+       rm -rf $(D)$(INCLUDEDIR)/xenstore-compat/xs_lib.h 
$(D)$(INCLUDEDIR)/xenstore-compat/xs.h
+       rm -rf $(D)$(INCLUDEDIR)/xenstore_lib.h $(D)$(INCLUDEDIR)/xenstore.h
+       rm -rf $(D)$(INCLUDEDIR)/xen
+       rm -rf $(D)$(INCLUDEDIR)/_libxl* $(D)$(INCLUDEDIR)/libxl*
+       rm -rf $(D)$(INCLUDEDIR)/xenstat.h $(D)$(INCLUDEDIR)/xentoollog.h
+       rm -rf $(D)$(LIBDIR)/libxenctrl* $(D)$(LIBDIR)/libxenguest*
+       rm -rf $(D)$(LIBDIR)/libxenstore* $(D)$(LIBDIR)/libxlutil*
+       rm -rf $(D)$(LIBDIR)/python/xen $(D)$(LIBDIR)/python/grub
+       rm -rf $(D)$(LIBDIR)/xen/
+       rm -rf $(D)$(LIBEXEC)/xen*
+       rm -rf $(D)$(SBINDIR)/setmask
+       rm -rf $(D)$(SBINDIR)/xen* $(D)$(SBINDIR)/netfix $(D)$(SBINDIR)/xm
+       rm -rf $(D)$(SHAREDIR)/doc/xen
+       rm -rf $(D)$(SHAREDIR)/xen
+       rm -rf $(D)$(SHAREDIR)/qemu-xen
+       rm -rf $(D)$(MAN1DIR)/xen*
+       rm -rf $(D)$(MAN8DIR)/xen*
+
 .PHONY: clean
 clean: subdirs-clean
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.