From beffee2b2fefca29b820b48e1395231d88b4b70d Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Thu, 9 Jan 2020 23:03:01 -0700 Subject: * When Alpine is built with the option --with-bundled-tools, the "make install" command will also install the mailutil program. Feature contributed by Professor Ryan Elliot. --- imap/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'imap') diff --git a/imap/Makefile b/imap/Makefile index 52ce3782..46807616 100644 --- a/imap/Makefile +++ b/imap/Makefile @@ -282,6 +282,7 @@ SH=sh SYSTEM=unix TOOLS=tools TOUCH=touch +INSTALL=install # Primary build command @@ -726,6 +727,23 @@ bundled: $(CD) dmail;$(MAKE) || true $(CD) tmail;$(MAKE) || true +install-mailutil: bundled$(BUNDLED) + @echo Installing mailutil... + @echo BUNDLED=$(BUNDLED) + if test x"$(BUNDLED)" = x""; then \ + $(INSTALL) -d $(DESTDIR)$(bindir); \ + $(INSTALL) mailutil/mailutil $(DESTDIR)$(bindir)/mailutil; \ + $(INSTALL) -d $(DESTDIR)$(mandir)/man1; \ + $(INSTALL) src/mailutil/mailutil.1 $(DESTDIR)$(mandir)/man1/mailutil.1; \ + fi + +uninstall-mailutil: + @echo Uninstalling mailutil... + @echo BUNDLED=$(BUNDLED) + if test x"$(BUNDLED)" = x""; then \ + $(RM) $(DESTDIR)$(bindir)/mailutil; \ + $(RM) $(DESTDIR)$(mandir)/man1/mailutil.1; \ + fi sysexitwarn: @echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- cgit v1.2.3-70-g09d2