30 lines
395 B
Makefile
30 lines
395 B
Makefile
|
build:
|
||
|
|
||
|
build: vendor-server
|
||
|
CGO_ENABLED=0 go build -mod=vendor -v -o ./bin/server ./cmd/server
|
||
|
|
||
|
test:
|
||
|
go test -v -race ./...
|
||
|
|
||
|
release:
|
||
|
@$(SHELL) ./misc/script/release.sh
|
||
|
|
||
|
vendor-%:
|
||
|
cd cmd/$* && go mod vendor
|
||
|
|
||
|
tidy:
|
||
|
go mod tidy
|
||
|
|
||
|
watch:
|
||
|
modd
|
||
|
|
||
|
lint:
|
||
|
golangci-lint run --enable-all
|
||
|
|
||
|
clean:
|
||
|
rm -rf release
|
||
|
rm -rf data
|
||
|
rm -rf vendor
|
||
|
rm -rf bin
|
||
|
|
||
|
.PHONY: lint watch build vendor tidy release
|