Adding Makefile
This commit is contained in:
parent
6c696ced3d
commit
0ad92e8e4a
1 changed files with 11 additions and 0 deletions
11
Makefile
Normal file
11
Makefile
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
GO=go
|
||||||
|
GOLDFLAGS=-v -s -w
|
||||||
|
GOBUILDFLAGS=-v -p $(shell nproc) -ldflags="$(GOLDFLAGS)"
|
||||||
|
|
||||||
|
.PHONY: build test
|
||||||
|
|
||||||
|
build :
|
||||||
|
$(GO) build $(GOBUILDFLAGS) -o build/dnsupdater cmd/dnsupdater/main.go
|
||||||
|
|
||||||
|
test :
|
||||||
|
$(GO) test -v ./...
|
||||||
Loading…
Add table
Add a link
Reference in a new issue