aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-12-01 10:06:11 +0100
committerMattias Andrée <maandree@operamail.com>2015-12-01 10:06:11 +0100
commitca7334841f34ce517c2db22ce36ec6c8858890ff (patch)
tree835bfa68bc887d2586f6e51f4bd58cf586783997 /Makefile
parentmisc improvements (diff)
downloadslack-ca7334841f34ce517c2db22ce36ec6c8858890ff.tar.gz
slack-ca7334841f34ce517c2db22ce36ec6c8858890ff.tar.bz2
slack-ca7334841f34ce517c2db22ce36ec6c8858890ff.tar.xz
add man page2.2
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8569981..b60ee82 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,10 @@ DATADIR = $(PREFIX)$(DATA)
DOCDIR = $(DATADIR)/doc
# The info manual documentation path including prefix
INFODIR = $(DATADIR)/info
+# The man page documentation path including prefix
+MANDIR = $(DATADIR)/man
+# The man page section 1 path including prefix
+MAN1DIR = $(MANDIR)/man1
# The license base path including prefix.
LICENSEDIR = $(DATADIR)/licenses
@@ -109,7 +113,7 @@ bin/slack.fish: src/completion
# Install rules.
.PHONY: install
-install: install-base install-info install-shell
+install: install-base install-info install-man install-shell
.PHONY: install
install-all: install-base install-doc install-shell
@@ -140,7 +144,7 @@ install-license:
# Install documentation.
.PHONY: install-doc
-install-doc: install-info install-pdf install-ps install-dvi
+install-doc: install-info install-pdf install-ps install-dvi install-man
.PHONY: install-info
install-info: bin/slack.info
@@ -162,6 +166,11 @@ install-dvi: bin/slack.dvi
install -dm755 -- "$(DESTDIR)$(DOCDIR)"
install -m644 $< -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME).dvi"
+.PHONY: install-man
+install-man: doc/man/slack.1
+ install -dm755 -- "$(DESTDIR)$(MAN1DIR)"
+ install -m644 $< -- "$(DESTDIR)$(MAN1DIR)/$(COMMAND).1"
+
# Install shell auto-completion.
.PHONY: install-shell
@@ -195,6 +204,7 @@ uninstall:
-rm -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME).pdf"
-rm -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME).ps"
-rm -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME).dvi"
+ -rm -- "$(DESTDIR)$(MAN1DIR)/$(COMMAND).1"
-rm -- "$(DESTDIR)$(DATADIR)/fish/completions/$(COMMAND).fish"
-rmdir -- "$(DESTDIR)$(DATADIR)/fish/completions"
-rmdir -- "$(DESTDIR)$(DATADIR)/fish"