summaryrefslogtreecommitdiff
path: root/Makefile
blob: f1f8ac7b111b0df68ab89ba389879db02026ac0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 ./...