gspot/Makefile
abs3nt 0b5e21a6f5
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
makefile
2024-02-18 09:19:18 -08:00

25 lines
567 B
Makefile

build: gospt-ng
gospt-ng: $(shell find . -name '*.go')
go build -ldflags="-X 'git.asdf.cafe/abs3nt/gospt-ng/src/components/cli.Version=$(shell git rev-parse --short HEAD)'" .
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