forked from einride/aip-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
70 lines (52 loc) · 1.3 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Code generated by go.einride.tech/sage. DO NOT EDIT.
# To learn more, see .sage/sagefile.go and https://github.com/einride/sage.
.DEFAULT_GOAL := all
sagefile := .sage/bin/sagefile
$(sagefile): .sage/go.mod .sage/*.go
@cd .sage && go mod tidy && go run .
.PHONY: sage
sage:
@git clean -fxq $(sagefile)
@$(MAKE) $(sagefile)
.PHONY: update-sage
update-sage:
@cd .sage && go get -d go.einride.tech/sage@latest && go mod tidy && go run .
.PHONY: clean-sage
clean-sage:
@git clean -fdx .sage/tools .sage/bin .sage/build
.PHONY: all
all: $(sagefile)
@$(sagefile) All
.PHONY: convco-check
convco-check: $(sagefile)
@$(sagefile) ConvcoCheck
.PHONY: format-markdown
format-markdown: $(sagefile)
@$(sagefile) FormatMarkdown
.PHONY: format-yaml
format-yaml: $(sagefile)
@$(sagefile) FormatYAML
.PHONY: git-verify-no-diff
git-verify-no-diff: $(sagefile)
@$(sagefile) GitVerifyNoDiff
.PHONY: go-generate
go-generate: $(sagefile)
@$(sagefile) GoGenerate
.PHONY: go-lint
go-lint: $(sagefile)
@$(sagefile) GoLint
.PHONY: go-mod-tidy
go-mod-tidy: $(sagefile)
@$(sagefile) GoModTidy
.PHONY: go-review
go-review: $(sagefile)
@$(sagefile) GoReview
.PHONY: go-test
go-test: $(sagefile)
@$(sagefile) GoTest
.PHONY: stringer
stringer: $(sagefile)
@$(sagefile) Stringer
.PHONY: proto
proto:
$(MAKE) -C proto -f Makefile