编写了一个 make file 发现怎么都 make 都报错 make: Nothing to be done for .PHONY: mac linux Mac: CGO_ENABLED=0 GOOS="darwin" GOARCH="amd64" go build -o project-api/target/project-api project-api/main.go linux: CGO_ENABLED=0 GOOS="linux" GOARCH="amd64" go build -o project-api/target/project-api project-api/main.go fa
以为是没有 main 函数导致,结果也有,最后发现 必须用 tab 键位来补全才可以。我用的空格就不行 没变色的就是空格导致的