summaryrefslogtreecommitdiffhomepage
path: root/Makefile
blob: 794132692610c1a7a9f19d03fed66b5423d2f3ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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