- Added uninstall target

This commit is contained in:
Paul Bakker 2012-11-13 10:28:43 +00:00
parent f02c5642d0
commit f6bdf8d86c

View File

@ -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 ..