18 lines
264 B
Makefile
18 lines
264 B
Makefile
BINARY := dist/popiartserver
|
|
GOFILES := $(shell find cmd internal -name '*.go' | sort)
|
|
|
|
.PHONY: fmt build run test
|
|
|
|
fmt:
|
|
gofmt -w $(GOFILES)
|
|
|
|
build:
|
|
mkdir -p dist
|
|
go build -o $(BINARY) ./cmd/popiartserver
|
|
|
|
run:
|
|
go run ./cmd/popiartserver
|
|
|
|
test:
|
|
go test ./...
|