Alex Rivera | Logout

"multiple target patterns" Makefile error

Asked 2010-01-20T10:03:12.100
116

My makefile fails with error:

Makefile:34: *** multiple target patterns.  Stop.

What does it really mean, how can I fix this?

(GNU make manual).


Found it. I had rule in form:

$(FOO): bar

where FOO was set from shell command that polluted it with error message that contained a colon.

Edit
Report

1 Answer

40

Besides having to escape colons as in the original answer, I have found if the indentation is off you could potentially get the same problem. In one makefile, I had to replace spaces with a tab and that allowed me to get past the error.

answered 2013-02-15T17:51:14.353

Your Answer