Add a make install target

This commit is contained in:
idk
2022-01-24 17:15:45 -05:00
parent 1cecd5afdf
commit 8b7fbede0f
2 changed files with 6 additions and 1 deletions

View File

@ -13,6 +13,7 @@ CONSOLEPOSTNAME=Tor Binary Manager
USER_GH=eyedeekay
PLUGIN=$(HOME)/.i2p/plugins/$(BINARY)-$(GOOS)-$(GOARCH)
PREFIX?=/usr/local
binary:
go build $(ARG) -tags="netgo" -o $(BINARY)-$(GOOS)-$(GOARCH) .
@ -20,6 +21,11 @@ binary:
install-binary: binary
cp -v $(BINARY)-$(GOOS)-$(GOARCH) $(PLUGIN)/lib
install:
install -m755 -v $(BINARY)-$(GOOS)-$(GOARCH) $(PREFIX)/bin/$(BINARY)-$(GOOS)-$(GOARCH)
ln -sf $(PREFIX)/bin/$(BINARY)-$(GOOS)-$(GOARCH) $(PREFIX)/bin/i2pbrowser
ln -sf $(PREFIX)/bin/$(BINARY)-$(GOOS)-$(GOARCH) $(PREFIX)/bin/torbrowser
build: dep binary
make su3

View File

@ -36,7 +36,6 @@ The plugin will not start a Tor instance if a SOCKS proxy is open on port 9050.
![Screenshot](screenshot.png)
### Primary Goals