lawless/server/Makefile

23 行
467 B
Makefile

.PHONY: build run test lint clean
BINARY_NAME=honghuang-server
GO=go
GOLANGCI_LINT=golangci-lint
# Nakama Go 模块需要以 plugin 模式编译,输出 .so 供 Nakama 加载。
build:
$(GO) build -buildmode=plugin -o $(BINARY_NAME).so .
run: build
@echo "Nakama module built at $(BINARY_NAME).so"
@echo "Configure Nakama runtime -> path to load this shared object."
test:
$(GO) test ./...
lint:
$(GOLANGCI_LINT) run ./...
clean:
rm -f $(BINARY_NAME).so