aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-09-30 13:33:00 +0200
committerMattias Andrée <maandree@kth.se>2016-09-30 13:33:00 +0200
commit376542b13857db86dd5c36144f37bd58bd2646b8 (patch)
treeacbab319378f45c4502b1e1df3323a6619cb9190 /Makefile
parentAdd readme (diff)
downloadpdeath-376542b13857db86dd5c36144f37bd58bd2646b8.tar.gz
pdeath-376542b13857db86dd5c36144f37bd58bd2646b8.tar.bz2
pdeath-376542b13857db86dd5c36144f37bd58bd2646b8.tar.xz
Add manpage
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fc3e74c..255fc3c 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,8 @@ PREFIX = /usr
BINDIR = $(PREFIX)/bin
DATADIR = $(PREFIX)/share
LICENSEDIR = $(DATADIR)/licences
+MANDIR = $(DATADIR)/man
+MAN1DIR = $(MANDIR)/man1
PKGNAME = pdeath
COMMAND = pdeath
@@ -23,9 +25,12 @@ install: bin/pdeath
cp -- bin/pdeath "$(DESTDIR)$(BINDIR)/$(COMMAND)"
mkdir -p -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)"
cp -- LICENSE "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/LICENSE"
+ mkdir -p -- "$(DESTDIR)$(MAN1DIR)"
+ cp doc/pdeath.1 -- "$(DESTDIR)$(MAN1DIR)/$(COMMAND).1"
uninstall:
-rm -- "$(DESTDIR)$(BINDIR)/$(COMMAND)"
+ -rm -- "$(DESTDIR)$(MAN1DIR)/$(COMMAND).1"
clean:
-rm -rf bin