Skip to content

Commit

Permalink
add 'make install'
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <[email protected]>
  • Loading branch information
systay committed Dec 3, 2024
1 parent 6eda568 commit 7add203
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all build test tidy clean pretty install-tools lint install-hooks
.PHONY: all build test tidy clean pretty install install-tools lint install-hooks
.DEFAULT_GOAL := test_and_build

REQUIRED_GO_VERSION := 1.23
Expand Down Expand Up @@ -27,7 +27,8 @@ check_version:
default: check_version build

build:
go build -o vt ./go/vt
@echo "Building vt..."
@go build -o vt ./go/vt

test:
go test -count=1 ./go/...
Expand Down Expand Up @@ -75,4 +76,8 @@ install-hooks:
@echo "Installing Git hooks..."
@ln -sf ../../git-hooks/pre-commit .git/hooks/pre-commit
@chmod +x .git/hooks/pre-commit
@echo "Pre-commit hook installed successfully."
@echo "Pre-commit hook installed successfully."

install: build
@install -m 0755 vt $(GOBIN_DIR)/vt
@echo "vt installed successfully to $(GOBIN_DIR)."

0 comments on commit 7add203

Please sign in to comment.