diff options
author | Rich Salz <rsalz@openssl.org> | 2015-01-12 16:28:05 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-01-12 16:28:05 +0100 |
commit | 9405a9a2e1594cea9c963c29d9898bb03cb0f24f (patch) | |
tree | daf20aa2848dc699281ec9b7bf95db91467e4ed0 /tools | |
parent | Fix no-deprecated on Windows (diff) | |
download | openssl-9405a9a2e1594cea9c963c29d9898bb03cb0f24f.tar.xz openssl-9405a9a2e1594cea9c963c29d9898bb03cb0f24f.zip |
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/Makefile | 12 |
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 |