14 lines
310 B
Makefile
14 lines
310 B
Makefile
.PHONY: setconfig run lint
|
|
|
|
run: setconfig
|
|
go build -o gf-lt && ./gf-lt
|
|
|
|
server: setconfig
|
|
go build -o gf-lt && ./gf-lt -port 3333
|
|
|
|
setconfig:
|
|
find config.toml &>/dev/null || cp config.example.toml config.toml
|
|
|
|
lint: ## Run linters. Use make install-linters first.
|
|
golangci-lint run -c .golangci.yml ./...
|