browser: make generic and remove redundant scripts

This commit is contained in:
Lucas 2020-07-27 21:45:43 +00:00
parent 6a795d70f0
commit 0c497ffde9
4 changed files with 24 additions and 38 deletions

View file

@ -15,9 +15,9 @@
PREFIX = $(HOME)
MANPREFIX = $(PREFIX)/local
BIN = ZZZ browser credentials fetch flac2ogg imgresize invidious \
plumb pstsrv riot-web-ui rfcopen screenshot sekrit tor-browser \
w3m-copy-link
plumb pstsrv rfcopen screenshot sekrit w3m-copy-link
MAN1 = sekrit.1
BROWSER_LINKS = tor-browser
all: $(BIN)
@ -27,10 +27,14 @@ clean:
install: all
mkdir -p $(PREFIX)/bin
cp -f $(BIN) $(PREFIX)/bin
cd $(PREFIX)/bin && chmod 555 $(BIN)
for t in $(BROWSER_LINKS); do \
rm -f $(PREFIX)/bin/$$t; \
ln $(PREFIX)/bin/browser $(PREFIX)/bin/$$t; \
done
cd $(PREFIX)/bin && chmod 555 $(BIN) $(BROWSER_LINKS)
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)
cd $(PREFIX)/bin && rm -f $(BIN) $(BROWSER_LINKS)