Improve makefile
This commit is contained in:
parent
115a2e3946
commit
08d7602dc3
12
Makefile
12
Makefile
@ -1,9 +1,17 @@
|
|||||||
|
PREFIX ?= /usr
|
||||||
|
DESTDIR ?=
|
||||||
|
BINDIR ?= $(PREFIX)/bin
|
||||||
|
|
||||||
all: wireguard-go
|
all: wireguard-go
|
||||||
|
|
||||||
wireguard-go: $(wildcard *.go) $(wildcard */*.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:
|
clean:
|
||||||
rm -f wireguard-go
|
rm -f wireguard-go
|
||||||
|
|
||||||
.PHONY: clean cloc
|
.PHONY: clean install
|
||||||
|
Loading…
Reference in New Issue
Block a user