olebedev/go-starter-kit

Makefile:19: *** target pattern contains no `%'. Stop.

abhishekaypurohit opened this issue · 3 comments

I am transitioning from Java to Go, trying to build a web application with some UI.

After cloning repo I am running make install, but I am getting this error.

Makefile:19: *** target pattern contains no `%'. Stop.

Please let me know if I have missed anything.

Hi @apurohitm,
which Golang version do you use?

Thanks for reply @olebedev

Below is the version.

go version go1.7.3 darwin/amd64

@apurohitm do you have a colon in your $GOPATH? I don't personally use it like that but it is a valid configuration as described here. If I add one I can reproduce this error:

mkdir /tmp/go
export GOPATH=$GOPATH:/tmp/go
make install

The reason for this is similar to the answer here.