gospt/Makefile

30 lines
622 B
Makefile
Raw Normal View History

2023-01-07 07:42:00 +00:00
build:
2023-01-09 23:52:21 +00:00
mkdir -p bin
go build -o ./bin/gospt .
completions:
mkdir -p completions
bin/gospt completion zsh > completions/_gospt
bin/gospt completion bash > completions/gospt
bin/gospt completion fish > completions/gospt.fish
2023-01-07 07:42:00 +00:00
run:
go run main.go
tidy:
go mod tidy
clean:
rm -rf bin
2023-01-09 23:52:21 +00:00
rm -rf completions
2023-01-07 07:42:00 +00:00
uninstall:
2023-01-09 23:52:21 +00:00
rm -f /usr/bin/gospt
rm /usr/share/zsh/site-functions/_gospt
2023-01-07 07:42:00 +00:00
install:
2023-01-09 23:52:21 +00:00
cp bin/gospt /usr/bin
cp completions/_gospt /usr/share/zsh/site-functions/_gospt
cp completions/gospt /usr/share/bash-completion/completions/gospt
cp completions/gospt.fish /usr/share/fish/vendor_completions.d/gospt.fish