Add a 'make uninstall' target
authorEric Andersen <andersen@codepoet.org>
Sat, 13 Apr 2002 13:39:48 +0000 (13:39 -0000)
committerEric Andersen <andersen@codepoet.org>
Sat, 13 Apr 2002 13:39:48 +0000 (13:39 -0000)
Makefile

index 28b041ce005a6e9dd65d7b40474f7d79650953c4..16b4a5f7504f42760ebb326ec40cb65a61c78ade 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -56,6 +56,9 @@ busybox.links: applets/busybox.mkll
 install: applets/install.sh busybox busybox.links
        $(SHELL) $< $(PREFIX)
 
+uninstall: busybox busybox.links
+       for i in `cat busybox.links` ; do rm -f $$PREFIX$$i; done
+
 install-hardlinks: applets/install.sh busybox busybox.links
        $(SHELL) $< $(PREFIX) --hardlinks