Skip to content

Commit

Permalink
standard makefile,fix not work no macos
Browse files Browse the repository at this point in the history
Signed-off-by: timchenxiaoyu <837829664@qq.com>
  • Loading branch information
timchenxiaoyu committed Jan 4, 2021
1 parent 9067796 commit d649174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d649174

Please sign in to comment.