Which is more convenient to build a go project with Bazel or Makefile?

which is more convenient to use Bazel or Makefile to build go projects?

Oct.30,2021

if there is no historical baggage, I personally recommend Bazel. The collocation of google series is also easy


small item makefile is simpler


Makefile is enough

.PHONY: build clean lint help

all: build deploy

build:
    GOOS=linux GOARCH=amd64 go build -o ./bin/quntui-image-processor  .
    upx ./bin/quntui-image-processor
deploy:
    git commit -am "release"
    git push

lint:
    golint ./...

clean:
    rm -rf ./bin/quntui-image-processor
    go clean -i .

help:
    @echo "make: "
    @echo "make lint: "
    @echo "make clean: "
Menu