fj/Makefile

34 lines
686 B
Makefile
Raw Normal View History

2026-01-05 12:58:11 +01:00
.PHONY: help build run test clean lint lint-fix install
2025-12-08 09:56:54 +01:00
help:
@echo "Available commands:"
@echo " make build - Build the application"
2026-01-05 12:58:11 +01:00
@echo " make install - Install the binary to /usr/bin"
2025-12-08 09:56:54 +01:00
@echo " make run - Run the application"
@echo " make test - Run tests"
@echo " make lint - Run golangci-lint"
@echo " make lint-fix - Run golangci-lint with auto-fix"
@echo " make clean - Clean build artifacts"
build:
go build -o bin/fgj .
2026-01-05 12:58:11 +01:00
install: build
install -Dm755 bin/fgj /usr/bin/fgj
2025-12-08 09:56:54 +01:00
run:
go run .
test:
go test -v -race ./...
lint:
golangci-lint run ./...
lint-fix:
golangci-lint run --fix ./...
clean:
rm -rf bin/
go clean