aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Dain <mark@markdain.net>2022-01-22 16:57:57 +0000
committerRobin Jarry <robin@jarry.cc>2022-01-24 09:38:45 +0100
commit1864680bfcf7f24e785c5fd2473c780a2801d861 (patch)
treedcb62ace2192498784c7cf5a27850996fcd4d43c
parentb9e96751af912a2b455209b24beaa403d9e8495a (diff)
downloadaerc-1864680bfcf7f24e785c5fd2473c780a2801d861.tar.gz
mk: add make checkinstall
Adds a quick way to ensure the install was successful.
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 25a30478..e0946214 100644
--- a/Makefile
+++ b/Makefile
@@ -97,6 +97,18 @@ install: $(DOCS) aerc aerc.conf
install -m644 templates/forward_as_body $(DESTDIR)$(SHAREDIR)/templates/forward_as_body
install -m644 config/default_styleset $(DESTDIR)$(SHAREDIR)/stylesets/default
+.PHONY: checkinstall
+checkinstall:
+ $(DESTDIR)$(BINDIR)/aerc -v
+ test -e $(DESTDIR)$(MANDIR)/man1/aerc.1
+ test -e $(DESTDIR)$(MANDIR)/man5/aerc-config.5
+ test -e $(DESTDIR)$(MANDIR)/man5/aerc-imap.5
+ test -e $(DESTDIR)$(MANDIR)/man5/aerc-notmuch.5
+ test -e $(DESTDIR)$(MANDIR)/man5/aerc-sendmail.5
+ test -e $(DESTDIR)$(MANDIR)/man5/aerc-smtp.5
+ test -e $(DESTDIR)$(MANDIR)/man7/aerc-tutorial.7
+ test -e $(DESTDIR)$(MANDIR)/man7/aerc-templates.7
+
RMDIR_IF_EMPTY:=sh -c '! [ -d $$0 ] || ls -1qA $$0 | grep -q . || rmdir $$0'
uninstall: