Files
linkbeam/Makefile
Vladimir nett00n Budylnikov 20f949c250
Some checks failed
CI/CD Pipeline / Build Docker Image (push) Has been cancelled
CI/CD Pipeline / Test (push) Has been cancelled
CI/CD Pipeline / Build (arm64, windows, linkbeam-windows-arm64.exe) (push) Has been cancelled
CI/CD Pipeline / Build (386, linux, linkbeam-linux-386) (push) Has been cancelled
CI/CD Pipeline / Lint (push) Has been cancelled
CI/CD Pipeline / Build (amd64, linux, linkbeam-linux-amd64) (push) Has been cancelled
CI/CD Pipeline / Build (arm, 7, linux, linkbeam-linux-armv7) (push) Has been cancelled
CI/CD Pipeline / Build (386, windows, linkbeam-windows-386.exe) (push) Has been cancelled
CI/CD Pipeline / Build (amd64, windows, linkbeam-windows-amd64.exe) (push) Has been cancelled
CI/CD Pipeline / Build (arm64, darwin, linkbeam-darwin-arm64) (push) Has been cancelled
CI/CD Pipeline / Build (arm64, linux, linkbeam-linux-arm64) (push) Has been cancelled
CI/CD Pipeline / Build (amd64, darwin, linkbeam-darwin-amd64) (push) Has been cancelled
CI/CD Pipeline / Create Release (push) Has been cancelled
Init commit
2025-10-12 21:56:53 +04:00

65 lines
1.4 KiB
Makefile

.PHONY: build test run clean help
# Build the linkbeam binary
build:
@mkdir -p dist
go build -o dist/linkbeam cmd/linkbeam/main.go
@echo "Binary built at: dist/linkbeam"
# Run all tests
test:
go test -v ./...
# Run with default config
run:
go run cmd/linkbeam/main.go
# Run with custom config
run-example:
go run cmd/linkbeam/main.go --config internal/config/testdata/config.yaml
# Clean build artifacts
clean:
rm -rf dist/
rm -f linkbeam
# Run tests with coverage
test-coverage:
go test -v -cover ./...
# Format code
fmt:
go fmt ./...
# Run go vet
vet:
go vet ./...
# Run linter
lint:
golangci-lint run
# Install pre-commit hooks
install-hooks:
pre-commit install
# Run pre-commit checks on all files
pre-commit:
pre-commit run --all-files
# Show help
help:
@echo "LinkBeam Makefile Commands:"
@echo " make build - Build the linkbeam binary"
@echo " make test - Run all tests"
@echo " make run - Run with default config.yaml"
@echo " make run-example - Run with example config"
@echo " make clean - Remove build artifacts"
@echo " make test-coverage - Run tests with coverage"
@echo " make fmt - Format code"
@echo " make vet - Run go vet"
@echo " make lint - Run golangci-lint"
@echo " make install-hooks - Install pre-commit hooks"
@echo " make pre-commit - Run pre-commit on all files"
@echo " make help - Show this help message"