changeset 18:162f041b396c

Provide uninstallation option. 2011-01-11 Andrew John Hughes <ahughes@redhat.com> * Makefile.am: (uninstall-local): Provide uninstallation option.
author Andrew John Hughes <ahughes@redhat.com>
date Tue, 11 Jan 2011 20:18:33 +0000
parents d0293407ac9c
children a9687562ffcc
files ChangeLog Makefile.am
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Jan 08 02:00:50 2011 +0000
+++ b/ChangeLog	Tue Jan 11 20:18:33 2011 +0000
@@ -1,3 +1,8 @@
+2011-01-11  Andrew John Hughes  <ahughes@redhat.com>
+
+	* Makefile.am:
+	(uninstall-local): Provide uninstallation option.
+
 2011-01-08  Andrew John Hughes  <ahughes@redhat.com>
 
 	* Makefile.am:
--- a/Makefile.am	Sat Jan 08 02:00:50 2011 +0000
+++ b/Makefile.am	Tue Jan 11 20:18:33 2011 +0000
@@ -214,6 +214,13 @@
 	cp -r netbeans/nbbuild/netbeans_visualvm/$(PROFILER) $(DESTDIR)$(libdir)/visualvm	
 	cp visualvm.desktop $(DESTDIR)$(datadir)/applications
 
+uninstall-local:
+	rm -f $(DESTDIR)$(bindir)/jvisualvm
+	rm -f $(DESTDIR)$(sysconfdir)/visualvm.conf
+	rm -f $(DESTDIR)$(sysconfdir)/visualvm.clusters
+	rm -rf $(DESTDIR)$(libdir)/visualvm
+	rm -f $(DESTDIR)$(datadir)/applications/visualvm.desktop
+
 download-netbeans-profiler: stamps/download-netbeans-profiler.stamp
 
 download-visualvm: stamps/download-visualvm.stamp