-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (51 loc) · 1.74 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
GOTOOLS = \
github.com/NYTimes/openapi2proto/cmd/openapi2proto@latest \
github.com/cweill/gotests/gotests@latest \
github.com/deepmap/oapi-codegen/cmd/oapi-codegen@latest \
github.com/golang/mock/mockgen@latest \
github.com/google/skicka@latest \
github.com/googleapis/gnostic@latest \
github.com/jackc/sqlfmt/cmd/sqlfmt@latest \
github.com/jfeliu007/goplantuml/cmd/goplantuml@latest \
github.com/k-saiki/mfa@latest \
github.com/mattn/memo@latest \
github.com/mijime/beareq/v2/cmd/beareq@latest \
github.com/shpota/goxygen@latest \
golang.org/x/tools/cmd/...@latest
install: brew_install gotools_install npm_install vim_install python_install
update: brew_update gotools_update npm_update vim_update python_update
git commit -m "chore: update package version" . || true
brew_install:
brew bundle install --global
brew_update:
brew update --preinstall
make brew_install
brew bundle cleanup --global
gotools_install:
cd $(shell git rev-parse --show-toplevel) && \
for gotool in $(GOTOOLS); do \
CGO_ENABLED=0 go install -v $$gotool; \
done
cd $(shell git rev-parse --show-toplevel)/gotools && \
CGO_ENABLED=0 go generate ./... \
CGO_ENABLED=0 go install -v ./...
gotools_update:
cd $(shell git rev-parse --show-toplevel) && \
for gotool in $(GOTOOLS); do \
CGO_ENABLED=0 go install -v $$gotool; \
done
cd $(shell git rev-parse --show-toplevel)/gotools && \
CGO_ENABLED=0 go get -u -v ./... && go mod tidy
npm_install:
npm install
npm_update:
npm outdated | awk 'NR>1{print$$1"@latest"}' | xargs npm install
npm prune
python_install:
poetry install
python_update:
poetry update
vim_install:
vim -c PlugInstall -c quitall
vim_update: vim_install
vim -c PlugUpdate -c quitall