wireguard-go/Makefile
2018-05-15 14:49:52 +02:00

17 lines
321 B
Makefile

PREFIX ?= /usr
DESTDIR ?=
BINDIR ?= $(PREFIX)/bin
all: wireguard-go
wireguard-go: $(wildcard *.go) $(wildcard */*.go)
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