1 Star 0 Fork 0

a76yyyy/HustWebAuth

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile.cross-compiles 891 Bytes
一键复制 编辑 原始数据 按行查看 历史
a76yyyy 提交于 2022-11-24 16:20 . Rename Repo
export PATH := $(GOPATH)/bin:$(PATH)
export GO111MODULE=on
LDFLAGS := -s -w
os-archs=windows:386 windows:amd64 darwin:amd64 darwin:arm64 freebsd:386 freebsd:amd64 linux:386 linux:amd64 linux:arm linux:arm64 linux:mips64 linux:mips64le linux:mips:softfloat linux:mipsle:softfloat
all: build
build: app
app:
@$(foreach n, $(os-archs),\
os=$(shell echo "$(n)" | cut -d : -f 1);\
arch=$(shell echo "$(n)" | cut -d : -f 2);\
gomips=$(shell echo "$(n)" | cut -d : -f 3);\
target_suffix=$${os}_$${arch};\
echo "Build $${os}-$${arch}...";\
env CGO_ENABLED=0 GOOS=$${os} GOARCH=$${arch} GOMIPS=$${gomips} go build -ldflags "$(LDFLAGS)" -o ./release/HustWebAuth_$${target_suffix} ./;\
echo "Build $${os}-$${arch} done";\
)
@mv ./release/HustWebAuth_windows_386 ./release/HustWebAuth_windows_386.exe
@mv ./release/HustWebAuth_windows_amd64 ./release/HustWebAuth_windows_amd64.exe
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/a76yyyy/HustWebAuth.git
git@gitee.com:a76yyyy/HustWebAuth.git
a76yyyy
HustWebAuth
HustWebAuth
main

搜索帮助

D67c1975 1850385 1daf7b77 1850385