add deps to makefile fix gitignore remove deprecated ioutil #3

Merged
abs3nt merged 8 commits from a into main 2023-01-19 05:26:32 +00:00
Showing only changes of commit ef9405ff93 - Show all commits

View File

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