Add dedicated prefix for manpages
This commit is contained in:
parent
63edc5f58d
commit
404fa47fd9
15
bin/Makefile
15
bin/Makefile
@ -12,10 +12,11 @@
|
|||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .sh .c
|
.SUFFIXES: .sh .c
|
||||||
|
|
||||||
PREFIX= $(HOME)
|
PREFIX = $(HOME)
|
||||||
BIN= ZZZ browser credentials fetch imgresize invidious rfcopen screenshot \
|
MANPREFIX = $(PREFIX)/local
|
||||||
sekrit tor-browser w3m-copy-link xsekrit
|
BIN = ZZZ browser credentials fetch imgresize invidious rfcopen \
|
||||||
MAN1= sekrit.1
|
screenshot sekrit tor-browser w3m-copy-link xsekrit
|
||||||
|
MAN1 = sekrit.1
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
|
||||||
@ -26,9 +27,9 @@ install: all
|
|||||||
mkdir -p $(PREFIX)/bin
|
mkdir -p $(PREFIX)/bin
|
||||||
cp -f $(BIN) $(PREFIX)/bin
|
cp -f $(BIN) $(PREFIX)/bin
|
||||||
cd $(PREFIX)/bin && chmod 555 $(BIN)
|
cd $(PREFIX)/bin && chmod 555 $(BIN)
|
||||||
mkdir -p $(PREFIX)/share/man/man1
|
mkdir -p $(MANPREFIX)/man/man1
|
||||||
cp -f $(MAN1) $(PREFIX)/share/man/man1
|
cp -f $(MAN1) $(MANPREFIX)/man/man1
|
||||||
cd $(PREFIX)/share/man/man1 && chmod 444 $(MAN1)
|
cd $(MANPREFIX)/man/man1 && chmod 444 $(MAN1)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
cd $(PREFIX)/bin && rm -f $(BIN)
|
cd $(PREFIX)/bin && rm -f $(BIN)
|
||||||
|
Loading…
Reference in New Issue
Block a user