I have the following (part of a larger multiline bash script) in my makefile. The variables A, B come from shell command execution via $$(...), but the code below is enough to reproduce the problem:
test:
A=1; \
B=2; \
diff < ( echo $$A ) < ( echo $$B ) || exit 1
syntax error near unexpected token `('.
How can this be done in make? I know there is ifeq and similar in Makefile, but I guess its not suitable for multiline bash scripts in Makefiles.
<(. Also $$ is the PID of the current process so you are comparing PIDA and PIDB, you never use the variables you set. - 123$$will result in the shell seing$. - PSkocik