Manpage fixes
This commit is contained in:
parent
cd3f296fc5
commit
78bdf578bf
7
Makefile
7
Makefile
@ -6,7 +6,9 @@ HAREFLAGS=
|
|||||||
DESTDIR=
|
DESTDIR=
|
||||||
PREFIX=/usr/local
|
PREFIX=/usr/local
|
||||||
BINDIR=$(PREFIX)/bin
|
BINDIR=$(PREFIX)/bin
|
||||||
MANDIR=$(PREFIX)/share/man
|
MANDIR!=test $(PREFIX)/share/man && \
|
||||||
|
printf $(PREFIX)/share/man || \
|
||||||
|
printf $(PREFIX)/man
|
||||||
|
|
||||||
all: bulb
|
all: bulb
|
||||||
|
|
||||||
@ -22,9 +24,10 @@ clean:
|
|||||||
install:
|
install:
|
||||||
mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
|
mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
|
||||||
install -Dm755 bulb $(DESTDIR)$(BINDIR)/bulb
|
install -Dm755 bulb $(DESTDIR)$(BINDIR)/bulb
|
||||||
install -Dm755 doc/*.1 $(DESTDIR)$(MANDIR)/man1
|
install -Dm755 doc/bulb.1 $(DESTDIR)$(MANDIR)/man1
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(DESTDIR)$(BINDIR)/bulb
|
rm -f $(DESTDIR)$(BINDIR)/bulb
|
||||||
|
rm -f $(DESTDIR)$(MANDIR)/man1/bulb.1
|
||||||
|
|
||||||
.PHONY: all check clean install uninstall
|
.PHONY: all check clean install uninstall
|
||||||
|
Loading…
Reference in New Issue
Block a user