Debugging Makefiles

Debugging makefiles

For example:

missing separator
The message:
makefile:2:missing separator. Stop.
or:
makefile:2:missing separator (did you mean TAB instead of 8 spaces?). Stop.
usually means you have a command script that is using spaces instead of tabs.
The more literal interpretation is that make was looking for a make separator such as :,
=, or a tab, and didnt find one. Instead, it found something it didnt understand.

Source: http://www.oreilly.com.cn/samplechap/gnumake/ch12.pdf

Another cause for the above problem

UTF-8 encoded files. Check with:

xxd makefile
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License