Skip to content

Commit

Permalink
Merge pull request #345 from koulerz/makefile-build
Browse files Browse the repository at this point in the history
chore: 修复makefile中编译linux版本失败的问题
  • Loading branch information
q191201771 authored Mar 7, 2024
2 parents 90c1075 + f51a9f1 commit 54c8fee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ build:

.PHONY: build_for_linux
build_for_linux:
export CGO_ENABLED=0 && export GOS=linux && ./script/build.sh
export CGO_ENABLED=0 && export GOOS=linux && ./script/build.sh

.PHONY: build_for_linux_amd64
build_for_linux_amd64:
export CGO_ENABLED=0 && export GOS=linux && export GOARCH=amd64 && ./script/build.sh
export CGO_ENABLED=0 && export GOOS=linux && export GOARCH=amd64 && ./script/build.sh

.PHONY: build_for_linux_arm64
build_for_linux_arm64:
export CGO_ENABLED=0 && export GOS=linux && export GOARCH=arm64 && ./script/build.sh
export CGO_ENABLED=0 && export GOOS=linux && export GOARCH=arm64 && ./script/build.sh

.PHONY: test
test:
Expand Down

0 comments on commit 54c8fee

Please sign in to comment.