-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (31 loc) · 658 Bytes
/
Copy pathMakefile
File metadata and controls
44 lines (31 loc) · 658 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
define USAGE
"Go blocks" project. A collection of simple but useful Go packages.
Usage: make <target>
some of the <targets> are:
lint - run linters
test - run tests
update-deps - update dependencies
endef
export USAGE
define CAKE
\033[1;31m. . .\033[0m
i i i
%~%~%~%
|||||||
-=========-
endef
export CAKE
help:
@echo "$$USAGE"
test:
go test -cover ./...
cover:
go test -coverprofile=gocover.tmp ./...
go tool cover -html=gocover.tmp
lint:
golangci-lint run
update-deps:
go get -u ./... && go mod tidy && go mod vendor
cake:
@printf "%b\n" "$$CAKE"
.PHONY: help test lint update-deps cake cover