|
ifndef erros in makefile
I know if-condition clause is available in makefile.
But when I try to use it inside a macro definition, bugs come out!
Any replies would be apreciated !
code:
define child
echo "child has one parameter: $1"
ifndef $2
echo "but child can also see parent's second parameter: $2!"
else
echo "and child cannot see parent's second parameter !"
endif
endef
erros:
child has one parameter: one
make: ifndef: Command not found
make: *** [scoping_issue] Error 127
|