gospt/Makefile
a 673fa3f62f add deps to makefile fix gitignore remove deprecated ioutil (#3)
Co-authored-by: abs3nt <abs3nt@asdf.cafe>
Reviewed-on: https://gitea.asdf.cafe/abs3nt/gospt/pulls/3
Co-authored-by: a <a@tuxpa.in>
Co-committed-by: a <a@tuxpa.in>
2023-01-18 21:26:31 -08:00

33 lines
669 B
Makefile

build: gospt
gospt: $(shell find . -name '*.go')
mkdir -p bin
go build -o gospt .
completions:
mkdir -p completions
bin/gospt completion zsh > completions/_gospt
bin/gospt completion bash > completions/gospt
bin/gospt completion fish > completions/gospt.fish
run:
go run main.go
tidy:
go mod tidy
clean:
rm -rf bin
rm -rf gospt
rm -rf completions
uninstall:
rm -f /usr/bin/gospt
rm /usr/share/zsh/site-functions/_gospt
install:
cp 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