Skip to content
Advertisement

Makefile error: syntax error: unexpected word (expecting “fi”)

I have a problem with the following section of a Makefile:

JavaScript

make SHELL='sh -x':

JavaScript

If I remove the line:

cp -r "/mnt/firmware"/* "/mnt/build-env"/lib/firmware/;

it will work, but I can’t see what the problem is.

What am I doing wrong?

Advertisement

Answer

You should add ; after this fi in the fourth line.

Advertisement