diff options
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,9 +1,17 @@ +PREFIX ?= /usr +DESTDIR ?= +BINDIR ?= $(PREFIX)/bin + all: wireguard-go wireguard-go: $(wildcard *.go) $(wildcard */*.go) - go build -o $@ + 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 cloc +.PHONY: clean install |