23 lines
330 B
Makefile
23 lines
330 B
Makefile
GO ?= /home/rogee/.local/go/bin/go
|
|
GOCACHE ?= /tmp/go-build
|
|
|
|
.PHONY: build fmt test test-all run modules-test
|
|
|
|
build:
|
|
$(GO) build .
|
|
|
|
fmt:
|
|
$(GO) fmt ./...
|
|
|
|
test:
|
|
$(GO) test ./...
|
|
|
|
test-all:
|
|
GOCACHE=$(GOCACHE) $(GO) test ./...
|
|
|
|
run:
|
|
$(GO) run . --config ./config.toml
|
|
|
|
modules-test:
|
|
$(GO) test ./internal/hubmodule/...
|