How can I insert a 1-line 'case' statement into '$(shell ...) ? Make is misunderstanding the right paren after 'case X in pattern)' as end of $(shell ...). How do I do it ? I cannot find the right way to quote the paren in 'pattern)'
I tried several variants now:
GCC_VERSION = $(shell g++ -dumpversion )
LIB5 = $(shell case "$$GCC_VERSION" in 2.9*|3.0*|3.1\) echo 1;; *\) echo 0;; esac; )
# ^^ ^^
all:
echo LIB5=$(LIB5)and this: RP=) LIB5 = $(shell case "$$GCC_VERSION" in 2.9*|3.0*|3.1$RP echo 1;; *$RP echo 0;; esac; )
and this:
LIB5 = $(shell { case "$$GCC_VERSION" in 2.9*|3.0*|3.1) echo 1;; *) echo 0;; esac; }
)It didn't work.
Is this possible?
-- Jacob Lerner
_______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
