提交 c1462b17 authored 作者: Jack Jie's avatar Jack Jie

chore:modify makefile, add 32 system command

上级 2ac126c5
......@@ -10,12 +10,19 @@ CONFIG_FILE = config.yaml
# 默认目标:构建并打包
all: build package
all_32: build_32 package
# 构建目标:编译Go程序
build:
@echo "Building $(BINARY_NAME)..."
GOOS=linux GOARCH=amd64 go build -o $(BINARY_NAME)
@echo "Build completed."
build_32:
@echo "Building $(BINARY_NAME)..."
GOOS=linux GOARCH=386 go build -o $(BINARY_NAME)
@echo "Build completed."
# 打包目标:将可执行文件和配置文件打包成tar.gz
package:
@echo "Packaging $(BINARY_NAME) and $(CONFIG_FILE)..."
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论