Skip to content

Commit

Permalink
makefile installs zsh completions on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasvanEyk committed Jun 17, 2023
1 parent 93e723f commit 2c466e4
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
install:
go build -o changelog && mv changelog "${HOME}/.local/bin/changelog";
all: binary shell-completions


binary: build-binary install-binary

build-binary:
go build -o changelog

install-binary:
cp changelog "${HOME}/.local/bin/changelog"


shell-completions: generate-shell-completions install-shell-completions

install-shell-completions:
cp ./completions/changelog.zsh /usr/local/share/zsh/site-functions/_changelog

generate-shell-completions:
./scripts/generate-completions

0 comments on commit 2c466e4

Please sign in to comment.