gospt/Makefile

25 lines
567 B
Makefile
Raw Normal View History

2024-02-18 16:53:32 +00:00
build: gospt-ng
gospt-ng: $(shell find . -name '*.go')
2024-02-18 17:19:18 +00:00
go build -ldflags="-X 'git.asdf.cafe/abs3nt/gospt-ng/src/components/cli.Version=$(shell git rev-parse --short HEAD)'" .
2024-02-18 16:53:32 +00:00
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