gspot/Makefile

24 lines
566 B
Makefile
Raw Permalink Normal View History

2024-02-19 02:51:25 +00:00
build: gspot
2024-02-18 16:53:32 +00:00
2024-02-19 02:51:25 +00:00
gspot: $(shell find . -name '*.go')
go build -ldflags="-X 'git.asdf.cafe/abs3nt/gspot/src/components/cli.Version=$(shell git show -s --date=short --pretty='format:%h (%ad)' 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:
2024-02-19 02:51:25 +00:00
rm -f /usr/bin/gspot
rm -f /usr/share/zsh/site-functions/_gspot
rm -f /usr/share/bash-completion/completions/gspot
2024-02-18 16:53:32 +00:00
install:
2024-02-19 02:51:25 +00:00
cp ./dist/gspot /usr/bin
cp ./completions/_gspot /usr/share/zsh/site-functions/_gspot
cp ./completions/gspot /usr/share/bash-completion/completionsgspotg