From 78bdf578bf57a9c3a89d9774fe08373b438abcb2 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 11 Oct 2024 17:29:50 -0400 Subject: [PATCH] Manpage fixes --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4e6dc3f..13dc61d 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,9 @@ HAREFLAGS= DESTDIR= PREFIX=/usr/local BINDIR=$(PREFIX)/bin -MANDIR=$(PREFIX)/share/man +MANDIR!=test $(PREFIX)/share/man && \ + printf $(PREFIX)/share/man || \ + printf $(PREFIX)/man all: bulb @@ -22,9 +24,10 @@ clean: install: mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 install -Dm755 bulb $(DESTDIR)$(BINDIR)/bulb - install -Dm755 doc/*.1 $(DESTDIR)$(MANDIR)/man1 + install -Dm755 doc/bulb.1 $(DESTDIR)$(MANDIR)/man1 uninstall: rm -f $(DESTDIR)$(BINDIR)/bulb + rm -f $(DESTDIR)$(MANDIR)/man1/bulb.1 .PHONY: all check clean install uninstall