fix makefile

This commit is contained in:
a 2023-01-18 23:17:59 -06:00
parent 29313f4b31
commit ef9405ff93
1 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,8 @@
build:
build: gospt
gospt: $(shell find . -name '*.go')
mkdir -p bin
go build -o ./bin/gospt .
go build -o gospt .
completions:
mkdir -p completions
@ -16,6 +18,7 @@ tidy:
clean:
rm -rf bin
rm -rf gospt
rm -rf completions
uninstall:
@ -23,7 +26,7 @@ uninstall:
rm /usr/share/zsh/site-functions/_gospt
install:
cp bin/gospt /usr/bin
cp gospt /usr/bin
cp completions/_gospt /usr/share/zsh/site-functions/_gospt
cp completions/gospt /usr/share/bash-completion/completions/gospt
cp completions/gospt.fish /usr/share/fish/vendor_completions.d/gospt.fish