-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
32 lines (22 loc) · 849 Bytes
/
Makefile
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
GOFILES := $(shell find . -name "*.go" -type f ! -path "./vendor/*")
GOFMT ?= gofmt -s
PACKAGES = $(shell go list ./... | grep -v /vendor/)
.PHONY: all test
all: slqfuzz_darwin_amd64 slqfuzz_windows_amd64 slqfuzz_linux_amd64 slqfuzz_linux_arm64
slqfuzz_darwin_amd64:
env GOOS=darwin GOARCH=amd64 go build -o sqlfuzz_darwin_amd64 main.go
# Temporary removed
slqfuzz_darwin_arm64:
env GOOS=darwin GOARCH=arm64 go build -o sqlfuzz_darwin_amd64 main.go
slqfuzz_windows_amd64:
env GOOS=windows GOARCH=amd64 go build -o sqlfuzz_windows_amd64.exe main.go
slqfuzz_linux_amd64:
env GOOS=linux GOARCH=amd64 go build -o sqlfuzz_linux_amd64 main.go
slqfuzz_linux_arm64:
env GOOS=linux GOARCH=arm64 go build -o sqlfuzz_linux_arm64 main.go
clean:
rm -rf sqlfuzz*
fmt:
@$(GOFMT) -w ${GOFILES}
test:
@go test -v -coverprofile cover.out ${PACKAGES}