-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
48 lines (34 loc) · 680 Bytes
/
Copy pathmakefile
File metadata and controls
48 lines (34 loc) · 680 Bytes
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
36
37
38
39
40
41
42
43
44
45
46
47
48
APP_NAME := godo
MAIN_PKG := ./cmd/godo
BIN_DIR := bin
.PHONY: all build build-dist run lint test test-verbose test-list tidy clean install release deps version
all: lint test build
build:
go build -o $(BIN_DIR)/$(APP_NAME) $(MAIN_PKG)
build-dist:
goreleaser build --snapshot --clean
run:
go run $(MAIN_PKG)
lint:
golangci-lint run
format:
gofmt -s -l -w .
test:
go test -failfast ./...
test-verbose:
go test -v -failfast ./...
test-list:
go test -list '.*' ./... 2>&1 | grep -E '^Test'
tidy:
go mod tidy
clean:
rm -rf $(BIN_DIR)/
rm -rf dist/
install:
go install $(MAIN_PKG)
release:
goreleaser release --clean
deps:
go mod graph
version:
go version