summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2015-01-12 10:28:05 -0500
committerRich Salz <rsalz@openssl.org>2015-01-12 10:28:05 -0500
commit9405a9a2e1594cea9c963c29d9898bb03cb0f24f (patch)
treedaf20aa2848dc699281ec9b7bf95db91467e4ed0 /tools
parent732192a0796c4ecbef3b13ccc8ee8ab23e28f483 (diff)
downloadopenssl-new-9405a9a2e1594cea9c963c29d9898bb03cb0f24f.tar.gz
RT478: Add uninstall make target
Add INSTALLDIRS variable, list of directories where things get installed. Change install_html_docs to use perl mkdir-p script. Add uninstall, uninstall_sw, uninstall_docs, uninstall_html_docs to Makefile.org. The actions of these targets were figured out by "inverting" the install target. Recurse into subdirs to do uninstall as needed. Added uninstall targets whose actions were similarly figured out by "inverting" the install target. Also remove some 'space before tab' complaints in Makefile.org Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 4ca835c4af..19950d14e5 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -33,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