aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRaphael Robatsch <raphael-git@tapesoftware.net>2022-04-20 22:22:07 +0200
committerRaphael Robatsch <raphael-git@tapesoftware.net>2022-04-20 22:22:07 +0200
commite7214b60fa65dd375a8c72b146171cfa2236e983 (patch)
tree8702cb291bcd59186b5de9c441676dffb194eb32 /Makefile
parentd072368de029458b9410591bdd257471389a26f9 (diff)
add manpage
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1be71aa..f0c027b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
PREFIX ?= /usr/local
+MANPREFIX ?= $(PREFIX)/share/man
CC ?= cc
output: someblocks.c blocks.def.h blocks.h
@@ -12,5 +13,8 @@ clean:
install: output
mkdir -p $(DESTDIR)$(PREFIX)/bin
install -m 0755 someblocks $(DESTDIR)$(PREFIX)/bin/someblocks
+ mkdir -p $(DESTDIR)$(MANPREFIX)/man1
+ install -m 0644 someblocks.1 $(DESTDIR)$(MANPREFIX)/man1/someblocks.1
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/someblocks
+ rm -f $(DESTDIR)$(MANPREFIX)/man1/someblocks.1