diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-08-02 15:32:12 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-08-02 15:32:12 +0200 |
commit | 22c83f4b8d98b6b3c7dabc078e70801d0201876c (patch) | |
tree | 12ad39aaaf91d74f23d71e748848c851d4fd93af /src | |
parent | a70c44a9f6eb66ceedc38f3258d5a1b159b1db6c (diff) | |
parent | 0ade48cb82ba4a80f31789f342eefa4e1ffcb3b4 (diff) |
Merge branch 'master' of git.zx2c4.com:wireguard-go
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/Makefile b/src/Makefile index 4ef8199..5b23ecc 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,9 +1,12 @@ -BINARY=wireguard-go +all: wireguard-go -build: - go build -o ${BINARY} +wireguard-go: $(wildcard *.go) + go build -o $@ clean: - if [ -f ${BINARY} ]; then rm ${BINARY}; fi + rm -f wireguard-go -.PHONY: clean +cloc: + cloc $(filter-out xchacha20.go $(wildcard *_test.go), $(wildcard *.go)) + +.PHONY: clean cloc |