diff --git a/Makefile b/Makefile index bf60d26c8f..66d1a94ff6 100644 --- a/Makefile +++ b/Makefile @@ -134,7 +134,8 @@ ifeq ($(GOBIN),) GOBIN := $(FIRST_GOPATH)/bin endif -export PATH := $(PATH):$(GOBIN):$(CURDIR)/hack +# This must never include the 'hack' directory +export PATH := $(PATH):$(GOBIN) GOMD2MAN ?= $(shell command -v go-md2man || echo '$(GOBIN)/go-md2man')