2024-02-18 16:53:32 +00:00
|
|
|
build: gospt-ng
|
|
|
|
|
|
|
|
gospt-ng: $(shell find . -name '*.go')
|
2024-02-18 18:02:43 +00:00
|
|
|
go build -ldflags="-X 'git.asdf.cafe/abs3nt/gospt-ng/src/components/cli.Version=$(shell git rev-parse --short HEAD)'" -o dist/ .
|
2024-02-18 16:53:32 +00:00
|
|
|
|
|
|
|
run:
|
|
|
|
go run main.go
|
|
|
|
|
|
|
|
tidy:
|
|
|
|
go mod tidy
|
|
|
|
|
|
|
|
clean:
|
2024-02-18 18:10:42 +00:00
|
|
|
rm -rf bin
|
2024-02-18 16:53:32 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
install:
|
2024-02-18 18:10:42 +00:00
|
|
|
cp ./dist/gospt-ng /usr/bin
|
|
|
|
cp ./completions/_gospt-ng /usr/share/zsh/site-functions/_gospt-ng
|
|
|
|
cp ./completions/gospt-ng /usr/share/bash-completion/completions/gospt-ng
|