gospt/Makefile

33 lines
742 B
Makefile
Raw Normal View History

build: gospt
gospt: $(shell find . -name '*.go')
go build -o gospt .
2023-01-09 23:52:21 +00:00
completions:
mkdir -p completions
2023-01-19 05:37:32 +00:00
gospt completion zsh > completions/_gospt
gospt completion bash > completions/gospt
gospt completion fish > completions/gospt.fish
2023-01-07 07:42:00 +00:00
run:
go run main.go
tidy:
go mod tidy
clean:
2023-01-19 05:37:32 +00:00
rm -f gospt
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
2023-01-19 05:37:32 +00:00
rm -f /usr/share/zsh/site-functions/_gospt
rm -f /usr/share/bash-completion/completions/gospt
rm -f /usr/share/fish/vendor_completions.d/gospt.fish
2023-01-07 07:42:00 +00:00
install:
cp gospt /usr/bin
2023-01-19 05:37:32 +00:00
gospt completion zsh > /usr/share/zsh/site-functions/_gospt
gospt completion bash > /usr/share/bash-completion/completions/gospt
gospt completion fish > /usr/share/fish/vendor_completions.d/gospt.fish