From: Antonio Ospite Date: Fri, 9 Mar 2018 10:05:41 +0000 (+0100) Subject: Makefile: add an explicit "docs" target to build the man page X-Git-Tag: v0.1.2~22 X-Git-Url: https://git.ao2.it/drupal-init-tools.git/commitdiff_plain/59acf798b69dbe5402fcc33bbe2f908bbbd99dae?hp=e7fdcc61bbca8f8560704575f0810f0fd9b0bf46 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. --- 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