Skip to content

Commit d649174

Browse files
committed
standard makefile,fix not work no macos
Signed-off-by: timchenxiaoyu <[email protected]>
1 parent 9067796 commit d649174

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,14 @@ benchmark: ## run benchmarks tests
197197

198198
FORCE:
199199

200-
define BUILD_BINARY =
200+
define BUILD_BINARY
201201
@echo "$(WHALE) $@"
202202
@go build ${DEBUG_GO_GCFLAGS} ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o $@ ${GO_LDFLAGS} ${GO_TAGS} ./$<
203203
endef
204204

205205
# Build a binary from a cmd.
206206
bin/%: cmd/% FORCE
207-
$(BUILD_BINARY)
207+
$(call BUILD_BINARY)
208208

209209
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
210210
@echo "$(WHALE) bin/containerd-shim"

0 commit comments

Comments
 (0)