Manpage fixes

This commit is contained in:
Sasha Koshka 2024-10-11 17:29:50 -04:00
parent cd3f296fc5
commit 78bdf578bf

View File

@ -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