diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |