This error seems to happen when you use a macro in a commented line, and the macro name does not exist. Commented lines in the makefile should probably be removed before processing ?