aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
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"