From 59acf798b69dbe5402fcc33bbe2f908bbbd99dae Mon Sep 17 00:00:00 2001
From: Antonio Ospite <ao2@ao2.it>
Date: Fri, 9 Mar 2018 11:05:41 +0100
Subject: [PATCH 1/1] Makefile: add an explicit "docs" target to build the man
 page

It's easier to remember "make docs" than "make drin.1" and moreover the
explicit "docs" target will show up in shell autocompletion while the
implicit "drin.1" target will not.
---
 Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 49a32a6..67c8d6f 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ LIBEXEC_DIR ?= $(prefix)/share/drin/libexec
 BIN_DIR := $(prefix)/bin
 MAN_DIR := $(prefix)/share/man
 
-.PHONY: all local installdocs install clean
+.PHONY: all local docs installdocs install clean
 
 all: drin
 
@@ -18,7 +18,9 @@ local: LIBEXEC_DIR := $(PWD)/libexec
 local: clean drin
 	touch drin.in
 
-installdocs: drin.1
+docs: drin.1
+
+installdocs: docs
 	install -d $(DESTDIR)$(MAN_DIR)/man1
 	install -m644 drin.1 $(DESTDIR)$(MAN_DIR)/man1
 
-- 
2.1.4