1
0
Fork 0

Adding Makefile

This commit is contained in:
Henrik Hautakoski 2023-12-25 21:41:17 +01:00
parent 6c696ced3d
commit 0ad92e8e4a

11
Makefile Normal file
View 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 ./...