aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-07-22 02:07:06 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-07-22 02:07:06 +0100
commitdaa24c3f3172e20006e8d4fc6c4d323fe6314c3b (patch)
tree9446cccacf8f5c23265614eab57511aa3fb3d68e /Makefile
parentb1054d7ad093e3cfdedbf10746e4e60e612b3c84 (diff)
downloaddwmblocks-daa24c3f3172e20006e8d4fc6c4d323fe6314c3b.tar.gz
dwmblocks-daa24c3f3172e20006e8d4fc6c4d323fe6314c3b.tar.bz2
dwmblocks-daa24c3f3172e20006e8d4fc6c4d323fe6314c3b.zip
Added man page to dwmblocks
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5cfbb5a..4180466 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
.POSIX:
PREFIX = /usr/local
+MANPREFIX = $(PREFIX)/share/man
CC = gcc
dwmblocks: dwmblocks.o
@@ -13,6 +14,11 @@ install: dwmblocks
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin
chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks
+ $(MAKE) manpage
+manpage:
+ mkdir -p $(MANPREFIX)/man1
+ cat dwmblocks.1 > $(MANPREFIX)/man1/dwmblocks.1
+ chmod 644 $(MANPREFIX)/man1/dwmblocks.1
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks