-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
40 lines (31 loc) · 638 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
34
35
36
37
38
39
40
.PHONY: all
all: build
.PHONY: build
build:
go build -ldflags "-s -w" -o pciids ./cmd/pciids
.PHONY: clean
clean:
rm -f pciids coverage.out
rm -rf dist/ site/
.PHONY: docs
docs:
mkdocs build
.PHONY: docs-api
docs-api:
echo "View docs at: http://localhost:6060/pkg/pciids/"
godoc -http=localhost:6060
.PHONY: lint
lint:
golangci-lint run
.PHONY: release
release: clean
goreleaser
.PHONY: release-snapshot
release-snapshot: clean
goreleaser --rm-dist --skip-publish --snapshot
.PHONY: test
test:
go test -cover -coverprofile=coverage.out ./...
.PHONY: test-coverage
test-coverage: test
go tool cover -html=coverage.out