From daa24c3f3172e20006e8d4fc6c4d323fe6314c3b Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 22 Jul 2024 02:07:06 +0100 Subject: Added man page to dwmblocks --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3-13-gbd6f