Skip to contentSkip to conversation

patch: Makefile uninstall option

Qemu-devel Bruno Abinader 1 participant 1 message Mar 26, 2006 Kbuild

lore
Share & tools
lore
#0 lore raw

Hi all,
I started looking QEMU source code recently and I saw that Makefile was missing a "uninstall" profile, that enables user to remove all files installed when using "make install". I don't know if this list is the proper way of sending patches but I'm assuming it is (I subscribed on it today).

BR,

--
Bruno de Oliveira Abinader
10LE/INdT

Makefile.new renamed from Makefile +5 -0
@@ -64,6 +64,11 @@
 	$(MAKE) -C $$d $@ || exit 1 ; \
         done
 
+uninstall: clean
+	rm -f "$(bindir)/*qemu*"
+	rm -rf "$(datadir)"
+	rm -rf "$(docdir)"
+	
 # various test targets
 test speed test2: all
 	$(MAKE) -C tests $@