25 lines
333 B
Makefile
25 lines
333 B
Makefile
|
export PATH:=$(shell go env GOPATH)/bin:$(PATH)
|
||
|
export EV_DATA=mem:
|
||
|
export EV_HTTP=:8080
|
||
|
export WEBFINGER_DOMAINS=localhost
|
||
|
|
||
|
.DEFAULT_GOAL := air
|
||
|
|
||
|
-include local.mk
|
||
|
|
||
|
|
||
|
air: gen
|
||
|
ifeq (, $(shell which air))
|
||
|
go install github.com/cosmtrek/air@latest
|
||
|
endif
|
||
|
air .
|
||
|
|
||
|
run:
|
||
|
go build . && ./tools
|
||
|
|
||
|
test:
|
||
|
go test -cover -race ./...
|
||
|
|
||
|
clean:
|
||
|
|