Add dedicated prefix for manpages

This commit is contained in:
Lucas 2019-12-04 11:01:03 +00:00
parent 63edc5f58d
commit 404fa47fd9

View File

@ -13,8 +13,9 @@
.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 \
screenshot sekrit tor-browser w3m-copy-link xsekrit
MAN1 = sekrit.1 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)