Makefile
Go 语言项目多采用 Makefile 组织项目编译
root:
export ROOT=github.com/cncamp/golang;
.PHONY: root
release:
echo "building httpserver binary"
mkdir -p bin/amd64
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/amd64 .
.PHONY: release
root:
export ROOT=github.com/cncamp/golang;
.PHONY: root
release:
echo "building httpserver binary"
mkdir -p bin/amd64
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/amd64 .
.PHONY: release