Skip to content

Commit

Permalink
feat(makefile): Added install and uninstall (#181)
Browse files Browse the repository at this point in the history
Co-authored-by: Ross <[email protected]>
  • Loading branch information
roceb and Ross authored Apr 8, 2024
1 parent e6436ad commit a60f670
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ GO_LDFLAGS=-ldflags "-s -w -X '$(GOMODULE)/internal/version.Version=$(shell git
# Alias for building program binary
build: $(BINARIES)

# Builds and installs binary in ~/.local/bin
install: build
mv $(BINARIES) $(HOME)/.local/bin

uninstall:
rm -f $(HOME)/.local/bin/$(BINARIES)
mod-tidy:
# Needed to fetch new dependencies and add them to go.mod
go mod tidy
Expand Down

0 comments on commit a60f670

Please sign in to comment.