Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add 'make install' #78

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)."
Loading