From f6bdf8d86c2e9926deb19205c502ffcf126d3be5 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Tue, 13 Nov 2012 10:28:43 +0000
Subject: [PATCH] - Added uninstall target
---
Makefile | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/Makefile b/Makefile
index 4713cfeb7..d29d830f6 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,18 @@ install:
fi \
done
+uninstall:
+ rm -rf $(DESTDIR)/include/polarssl
+ rm -f $(DESTDIR)/lib/libpolarssl.*
+
+ for p in programs/*/* ; do \
+ if [ -x $$p ] && [ ! -d $$p ] ; \
+ then \
+ f=$(PREFIX)`basename $$p` ; \
+ rm -f $(DESTDIR)/bin/$$f ; \
+ fi \
+ done
+
clean:
cd library && $(MAKE) clean && cd ..
cd programs && $(MAKE) clean && cd ..