aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-12-02 05:07:05 +0100
committerMattias Andrée <maandree@operamail.com>2015-12-02 05:07:05 +0100
commitd8d46880be6ed10c16382d8d2f9ed6de34c1df14 (patch)
tree4a832d6b421c2f1a01bc27b9de8c825eb96e2498 /Makefile
parentimprove readme (diff)
downloadexec-as-d8d46880be6ed10c16382d8d2f9ed6de34c1df14.tar.gz
exec-as-d8d46880be6ed10c16382d8d2f9ed6de34c1df14.tar.bz2
exec-as-d8d46880be6ed10c16382d8d2f9ed6de34c1df14.tar.xz
add man page
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-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"