17
17
rm -f golangci-lint
18
18
rm -f test/path
19
19
rm -f tools/Dracula.itermcolors
20
- rm -f tools/godownloader
21
20
rm -f tools/goreleaser
22
21
rm -f tools/svg-term
23
22
rm -rf tools/node_modules
@@ -40,25 +39,14 @@ test_linters:
40
39
41
40
# Maintenance
42
41
43
- generate : install.sh assets/github-action-config.json
44
42
fast_generate : assets/github-action-config.json
45
- .PHONY : generate fast_generate
46
-
47
- maintainer-clean : clean
48
- rm -rf install.sh
49
- .PHONY : maintainer-clean
43
+ .PHONY : fast_generate
50
44
51
45
fast_check_generated :
52
46
$(MAKE ) --always-make fast_generate
53
47
git checkout -- go.mod go.sum # can differ between go1.12 and go1.13
54
48
git diff --exit-code # check no changes
55
49
56
- check_generated :
57
- $(MAKE ) --always-make generate
58
- git checkout -- go.mod go.sum # can differ between go1.12 and go1.13
59
- git diff --exit-code # check no changes
60
- .PHONY : check_generated
61
-
62
50
release : .goreleaser.yml tools/goreleaser
63
51
./tools/goreleaser
64
52
.PHONY : release
@@ -72,10 +60,6 @@ snapshot: .goreleaser.yml tools/goreleaser
72
60
golangci-lint : FORCE
73
61
go build -o $@ ./cmd/golangci-lint
74
62
75
- tools/godownloader : export GOFLAGS = -mod=readonly
76
- tools/godownloader : tools/go.mod tools/go.sum
77
- cd tools && go build github.com/goreleaser/godownloader
78
-
79
63
tools/goreleaser : export GOFLAGS = -mod=readonly
80
64
tools/goreleaser : tools/go.mod tools/go.sum
81
65
cd tools && go build github.com/goreleaser/goreleaser
@@ -93,9 +77,6 @@ tools/Dracula.itermcolors:
93
77
assets/demo.svg : tools/svg-term tools/Dracula.itermcolors
94
78
./tools/svg-term --cast=183662 --out assets/demo.svg --window --width 110 --height 30 --from 2000 --to 20000 --profile ./tools/Dracula.itermcolors --term iterm2
95
79
96
- install.sh : .goreleaser.yml tools/godownloader
97
- ./tools/godownloader .goreleaser.yml | sed ' /DO NOT EDIT/s/ on [0-9TZ:-]*//' > $@
98
-
99
80
assets/github-action-config.json : FORCE golangci-lint
100
81
go run ./scripts/gen_github_action_config/main.go $@
101
82
0 commit comments