From 8d655dd2124b2d2ef7627c37d34349f9d2e41296 Mon Sep 17 00:00:00 2001 From: Richard Aas Date: Fri, 24 Jun 2011 06:42:11 +0000 Subject: [PATCH] make: added uninstall target --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 76a99a6..969d509 100644 --- a/Makefile +++ b/Makefile @@ -93,6 +93,12 @@ install: $(SHARED) $(STATIC) $(INSTALL) -m 0755 $(STATIC) $(DESTDIR)$(LIBDIR) $(INSTALL) -m 0644 $(MK) $(DESTDIR)$(MKDIR) +uninstall: + @rm -rf $(DESTDIR)$(INCDIR) + @rm -rf $(DESTDIR)$(MKDIR) + @rm -f $(DESTDIR)$(LIBDIR)/$(SHARED) + @rm -f $(DESTDIR)$(LIBDIR)/$(STATIC) + -include test.d test.o: test.c Makefile $(MK)