1 Star 0 Fork 141

titivip/driver-box

forked from iBUILDING-X/driver-box 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
三刀 提交于 2023-08-01 13:46 . 添加打包工具
.PHONY: vendor build build-all build-for-windows build-for-linux build-for-mac build-for-windows-amd64 build-for-windows-arm64 build-for-linux-amd64 build-for-linux-arm64 build-for-mac-amd64 build-for-mac-arm64
OUTPUT=output
APP=driver-box
BUILD=go build -o
vendor:
rm -rf $(OUTPUT)/
go mod tidy
go mod vendor
build: vendor build-for-windows build-for-linux build-for-mac
build-for-windows: build-for-windows-amd64 build-for-windows-arm64
build-for-linux: build-for-linux-amd64 build-for-linux-arm64
build-for-mac: build-for-mac-amd64 build-for-mac-arm64
build-for-windows-amd64:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 $(BUILD) $(OUTPUT)/$(APP)-windows-amd64.exe main.go
build-for-windows-arm64:
CGO_ENABLED=0 GOOS=windows GOARCH=arm64 $(BUILD) $(OUTPUT)/$(APP)-windows-arm64.exe main.go
build-for-linux-amd64:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(BUILD) $(OUTPUT)/$(APP)-linux-amd64 main.go
build-for-linux-arm64:
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 $(BUILD) $(OUTPUT)/$(APP)-linux-arm64 main.go
build-for-mac-amd64:
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 $(BUILD) $(OUTPUT)/$(APP)-mac-amd64 main.go
build-for-mac-arm64:
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 $(BUILD) $(OUTPUT)/$(APP)-mac-arm64 main.go
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/titivip/driver-box.git
git@gitee.com:titivip/driver-box.git
titivip
driver-box
driver-box
master

搜索帮助