I tried by adding the space tab before cp
command till observing the same issue.
The go Makefile is as follow:
$cat Makefile
GOOS ?= $(shell go env GOOS)
TEMPLATE_PATH:= $(shell mktemp -d)
ifeq ($(GOARCH),amd64)
TAG ?= -v1.10.1
TAG_NONE ?=
endif
cp ./template/* $(TEMPLATE_PATH)
cd $(TEMPLATE_PATH) && sed -i.back "s|TAG|$(TAG)|g" deploy.yaml
cd $(TEMPLATE_PATH) && sed -i.back "s|TAG_NONE|$(TAG_NONE)|g" deploy.yaml
out/mybinary:
echo "Hello!"
On running $ make out/mybinary
command I get the error "Makefile:8: *** missing separator. Stop."