diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..faf5a10 --- /dev/null +++ b/Makefile @@ -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 ./... \ No newline at end of file