gospt/Makefile

33 lines
669 B
Makefile
Raw Normal View History

build: gospt
gospt: $(shell find . -name '*.go')
2023-01-09 23:52:21 +00:00
mkdir -p bin
go build -o gospt .
2023-01-09 23:52:21 +00:00
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
rm -rf 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
rm /usr/share/zsh/site-functions/_gospt
2023-01-07 07:42:00 +00:00
install:
cp gospt /usr/bin
2023-01-09 23:52:21 +00:00
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