I need to find the text 'ifeq ($(Param1)' using grep. I try to assign search result to make variable. The problem is that single quotes don't escape text in make so when I try:
GrepResult:= $(shell grep 'ifeq ($$(Param1)' TextFile)
I get:
Makefile:214: *** unterminated call to function `shell': missing `)'. Stop.
The $ can be escaped with $$ but how do I escape parentheses in make? Thanks.
NB: $GrepResult is used in $(error) function, not in a rule command.