diff options
author | Rich Salz <rsalz@openssl.org> | 2015-01-12 10:28:05 -0500 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-01-12 10:28:05 -0500 |
commit | 9405a9a2e1594cea9c963c29d9898bb03cb0f24f (patch) | |
tree | daf20aa2848dc699281ec9b7bf95db91467e4ed0 /apps | |
parent | 732192a0796c4ecbef3b13ccc8ee8ab23e28f483 (diff) |
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 'apps')
-rw-r--r-- | apps/Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/Makefile b/apps/Makefile index 6ced2bd0eb..4270659c43 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -117,6 +117,19 @@ install: chmod 644 $(INSTALL_PREFIX)$(OPENSSLDIR)/openssl.cnf.new; \ mv -f $(INSTALL_PREFIX)$(OPENSSLDIR)/openssl.cnf.new $(INSTALL_PREFIX)$(OPENSSLDIR)/openssl.cnf +uninstall: + @set -e; for i in $(EXE); \ + do \ + echo $(RM) $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i; \ + $(RM) $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i; \ + done; + @set -e; for i in $(SCRIPTS); \ + do \ + echo $(RM) $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i; \ + $(RM) $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i; \ + done + $(RM) $(INSTALL_PREFIX)$(OPENSSLDIR)/openssl.cnf + tags: ctags $(SRC) |