From d802d4a685016be8b79c89b4f21099b9a1569532 Mon Sep 17 00:00:00 2001 From: radhitya Date: Sat, 13 Jun 2026 12:56:42 +0700 Subject: license, makefile, readme, ignore --- Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f1f8ac7 --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +BINARY = sdns + +GO = go +GOMOD = . + +.PHONY: default build test lint fmt clean run install fuzz race + +default: test lint build + +build: + $(GO) build -o $(BINARY) $(GOMOD) + +test: + $(GO) test -race -count=1 ./... + +lint: + $(GO) vet ./... + +fmt: + gofmt -w . + +clean: + rm -f $(BINARY) + +run: build + ./$(BINARY) + +install: + $(GO) install $(GOMOD) + +fuzz: + $(GO) test -fuzz=FuzzBuildResponse -fuzztime=30s ./internal/server/ + +race: + $(GO) test -race -count=1 ./... -- cgit v1.2.3