-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (23 loc) · 629 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
33
SHELL := /bin/bash
# The name of the executable
TARGET := 'proxysql-secret-manager'
# Use linker flags to provide version/build settings to the target.
LDFLAGS=-ldflags "-s -w"
all: clean lint build
$(TARGET):
@go build $(LDFLAGS) -o $(TARGET) .
build: clean $(TARGET)
@true
run: build
@./$(TARGET)
clean:
@rm -rf $(TARGET) *.test *.out tmp/* coverage dist
lint:
@gofumpt -l -w .
@go vet ./...
@golangci-lint run --config=.golangci.yml --allow-parallel-runners
test:
@mkdir -p coverage
@go test ./... --shuffle=on --coverprofile coverage/coverage.out
coverage: test
@go tool cover -html=coverage/coverage.out