1
0
mirror of https://git.zx2c4.com/wireguard-go synced 2024-11-15 01:05:15 +01:00
wireguard-go/Makefile

18 lines
335 B
Makefile
Raw Normal View History

2018-05-15 02:15:16 +02:00
PREFIX ?= /usr
DESTDIR ?=
BINDIR ?= $(PREFIX)/bin
all: wireguard-go
2018-05-14 00:28:30 +02:00
wireguard-go: $(wildcard *.go) $(wildcard */*.go)
2018-05-15 02:15:16 +02:00
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
2018-05-15 02:15:16 +02:00
.PHONY: clean install