1 Star 0 Fork 146

lonniehz/driver-box

forked from iBUILDING-X/driver-box 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
Makefile 1.21 KB
Copy Edit Raw Blame History
三刀 authored 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/lonniehz/driver-box.git
git@gitee.com:lonniehz/driver-box.git
lonniehz
driver-box
driver-box
master

Search