Eu inseri:
print-%:
@echo '$*=$($*)'
no meu Makefile e depois fiz um:
make print-MAKEINFO
para mostrar qual o valor de MAKEINFO no makefile:
MAKEINFO = 'if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
then echo $$r/texinfo/makeinfo/makeinfo ; \
else if (makeinfo --version | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
then echo makeinfo; else echo $$s/missing makeinfo; fi; fi'
e recebi este erro:
/bin/sh: 1: Syntax error: "(" unexpected
Makefile:25: recipe for target 'print-MAKEINFO' failed
make: *** [print-MAKEINFO] Error 2
então eu configurei MAKEINFO para:
MAKEINFO =
e executou o make e parece terminar sem problemas.