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

@ -12,10 +12,11 @@
.SUFFIXES:
.SUFFIXES: .sh .c
PREFIX= $(HOME)
BIN= ZZZ browser credentials fetch imgresize invidious rfcopen screenshot \
sekrit tor-browser w3m-copy-link xsekrit
MAN1= sekrit.1
PREFIX = $(HOME)
MANPREFIX = $(PREFIX)/local
BIN = ZZZ browser credentials fetch imgresize invidious rfcopen \
screenshot sekrit tor-browser w3m-copy-link xsekrit
MAN1 = sekrit.1
all: $(BIN)
@ -26,9 +27,9 @@ install: all
mkdir -p $(PREFIX)/bin
cp -f $(BIN) $(PREFIX)/bin
cd $(PREFIX)/bin && chmod 555 $(BIN)
mkdir -p $(PREFIX)/share/man/man1
cp -f $(MAN1) $(PREFIX)/share/man/man1
cd $(PREFIX)/share/man/man1 && chmod 444 $(MAN1)
mkdir -p $(MANPREFIX)/man/man1
cp -f $(MAN1) $(MANPREFIX)/man/man1
cd $(MANPREFIX)/man/man1 && chmod 444 $(MAN1)
uninstall:
cd $(PREFIX)/bin && rm -f $(BIN)