From d8d46880be6ed10c16382d8d2f9ed6de34c1df14 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Dec 2015 05:07:05 +0100 Subject: add man page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a303d36..77466d0 100644 --- a/Makefile +++ b/Makefile @@ -72,10 +72,10 @@ obj/%.o: src/%.c # Install rules .PHONY: install -install: install-base +install: install-base install-man .PHONY: install-all -install-all: install-base +install-all: install-base install-doc .PHONY: install-base install-base: install-command install-copyright @@ -98,6 +98,14 @@ install-license: install -dm755 -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)" install -m644 LICENSE -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)" +.PHONY: install-doc +install-doc: install-man + +.PHONY: install-man +install-man: + install -dm755 -- "$(DESTDIR)$(MAN1DIR)" + install -m644 doc/man/exec-as.1 -- "$(DESTDIR)$(MAN1DIR)/$(COMMAND).1" + # Uninstall rules @@ -108,6 +116,7 @@ uninstall: -rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/COPYING" -rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/LICENSE" -rmdir -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)" + -rm -- "$(DESTDIR)$(MAN1DIR)/$(COMMAND).1" -- cgit v1.2.3-70-g09d2