/ veet / Makefile
swadhinbiswas fix(sec): harden CI/CD workflows, validate remote_ref in pre-push hook, and resolve markdownlint warnings · 8/15/2026
2030541
37 lines · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
GO ?= $(shell which go 2>/dev/null || echo $(HOME)/.local/go/bin/go)
BINARY_NAME=veet

all: build

build:
	$(GO) build -o $(BINARY_NAME) .

run: build
	./$(BINARY_NAME)

test:
	$(GO) test -v -cover ./...

fmt:
	$(GO) fmt ./...

lint:
	$(GO) vet ./...

install: build
	mkdir -p $(HOME)/.local/bin
	cp -f $(BINARY_NAME) $(HOME)/.local/bin/$(BINARY_NAME)

clean:
	rm -f $(BINARY_NAME) coverage.out coverage.html

help:
	@echo "Available commands:"
	@echo "  make build    - Compile the single binary"
	@echo "  make run      - Build and launch the TUI"
	@echo "  make test     - Run all unit tests"
	@echo "  make fmt      - Format all Go source files"
	@echo "  make lint     - Run go vet"
	@echo "  make install  - Install binary to GOPATH/bin"
	@echo "  make clean    - Remove build artifacts"