Makefile: cleanup a bit and add cloc

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2017-08-01 14:41:32 +02:00
parent 91c1822473
commit 0ade48cb82

View File

@ -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