RT478: Add uninstall make target
[openssl.git] / tools / Makefile
index a9656a2..19950d1 100644 (file)
@@ -1,5 +1,5 @@
 #
-# SSLeay/tools/Makefile
+# OpenSSL/tools/Makefile
 #
 
 DIR=   tools
@@ -7,8 +7,6 @@ TOP=    ..
 CC=    cc
 INCLUDES= -I$(TOP) -I../../include
 CFLAG=-g
-MAKEDEPPROG=   makedepend
-MAKEDEPEND=    $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
 MAKEFILE=      Makefile
 
 CFLAGS= $(INCLUDES) $(CFLAG)
@@ -35,6 +33,18 @@ install:
        mv -f $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i ); \
        done;
 
+uninstall:
+       @for i in $(APPS) ; \
+       do  \
+               echo $(RM) $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i; \
+               $(RM) $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i; \
+       done;
+       @for i in $(MISC_APPS) ; \
+       do  \
+               echo $(RM) $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i; \
+               $(RM) $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i; \
+       done;
+
 files:
        $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO