From d64917403767d81d7acd413ad26ee0620099db86 Mon Sep 17 00:00:00 2001 From: "weixian.cxy" Date: Sat, 2 Jan 2021 17:20:47 +0800 Subject: [PATCH] standard makefile,fix not work no macos Signed-off-by: timchenxiaoyu <837829664@qq.com> --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ff9bf9b86..0bfed1565 100644 --- a/Makefile +++ b/Makefile @@ -197,14 +197,14 @@ benchmark: ## run benchmarks tests FORCE: -define BUILD_BINARY = +define BUILD_BINARY @echo "$(WHALE) $@" @go build ${DEBUG_GO_GCFLAGS} ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o $@ ${GO_LDFLAGS} ${GO_TAGS} ./$< endef # Build a binary from a cmd. bin/%: cmd/% FORCE - $(BUILD_BINARY) + $(call BUILD_BINARY) bin/containerd-shim: cmd/containerd-shim FORCE # set !cgo and omit pie for a static shim build: https://github.com/golang/go/issues/17789#issuecomment-258542220 @echo "$(WHALE) bin/containerd-shim"