mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2024-11-21 23:03:08 +01:00
18 lines
335 B
Makefile
18 lines
335 B
Makefile
PREFIX ?= /usr
|
|
DESTDIR ?=
|
|
BINDIR ?= $(PREFIX)/bin
|
|
|
|
all: wireguard-go
|
|
|
|
wireguard-go: $(wildcard *.go) $(wildcard */*.go)
|
|
go get -d -v
|
|
go build -v -o $@
|
|
|
|
install: wireguard-go
|
|
@install -v -d "$(DESTDIR)$(BINDIR)" && install -m 0755 -v wireguard-go "$(DESTDIR)$(BINDIR)/wireguard-go"
|
|
|
|
clean:
|
|
rm -f wireguard-go
|
|
|
|
.PHONY: clean install
|