Files
junk2jive-server/Makefile
2025-05-06 13:31:09 -07:00

16 lines
342 B
Makefile

env ?= development
port ?= 8080
junk2jive:
@go build ./cmd/junk2jive
run:
@go run ./cmd/junk2jive -e $(env) -p $(port)
test:
@go test ./... -v
test_coverage:
# @go test -cover ./...
@go test -coverprofile=coverage.out ./...
@go tool cover -func=coverage.out | grep total: | awk '{print "Total coverage: " $$3}'
clean:
@rm ./junk2jive