25 lines
470 B
Makefile
25 lines
470 B
Makefile
build: gospt-ng
|
|
|
|
gospt-ng: $(shell find . -name '*.go')
|
|
go build -o gospt-ng .
|
|
|
|
run:
|
|
go run main.go
|
|
|
|
tidy:
|
|
go mod tidy
|
|
|
|
clean:
|
|
rm -f gospt-ng
|
|
rm -rf completions
|
|
|
|
uninstall:
|
|
rm -f /usr/bin/gospt-ng
|
|
rm -f /usr/share/zsh/site-functions/_gospt-ng
|
|
rm -f /usr/share/bash-completion/completions/gospt-ng
|
|
rm -f /usr/share/fish/vendor_completions.d/gospt-ng.fish
|
|
|
|
install:
|
|
cp gospt-ng /usr/bin
|
|
cp ./completions/zsh_autocomplete /usr/share/zsh/site-functions/_gospt-ng
|