Files
SharedClassManager/backend-go/Makefile

21 lines
582 B
Makefile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Go 代理(国内环境使用 goproxy.cn
GOPROXY ?= https://goproxy.cn,direct
GOPRIVATE ?= hz-gitea.sea-studio.top
.PHONY: tidy build run dev clean
build:
GOPROXY=$(GOPROXY) GOPRIVATE=$(GOPRIVATE) GONOSUMCHECK=$(GOPRIVATE) GONOSUMDB=$(GOPRIVATE) go build -o sharedclassmanager ./cmd/server
run:
GOPROXY=$(GOPROXY) GOPRIVATE=$(GOPRIVATE) go run ./cmd/server
dev:
GOPROXY=$(GOPROXY) GOPRIVATE=$(GOPRIVATE) go run ./cmd/server
tidy:
GOPROXY=$(GOPROXY) GOPRIVATE=$(GOPRIVATE) GONOSUMCHECK=$(GOPRIVATE) GONOSUMDB=$(GOPRIVATE) go mod tidy
clean:
rm -f sharedclassmanager