Module path, binary name, config dir, help text, and docs all updated from fgj-sid/fgj to fj.
33 lines
683 B
Makefile
33 lines
683 B
Makefile
.PHONY: help build run test clean lint lint-fix install
|
|
|
|
help:
|
|
@echo "Available commands:"
|
|
@echo " make build - Build the application"
|
|
@echo " make install - Install the binary to /usr/bin"
|
|
@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/fj .
|
|
|
|
install: build
|
|
install -Dm755 bin/fj /usr/bin/fj
|
|
|
|
run:
|
|
go run .
|
|
|
|
test:
|
|
go test -v -race ./...
|
|
|
|
lint:
|
|
golangci-lint run ./...
|
|
|
|
lint-fix:
|
|
golangci-lint run --fix ./...
|
|
|
|
clean:
|
|
rm -rf bin/
|
|
go clean
|