|
From: | Yakov Lerner |
Subject: | $(shell case ...) -- problem with embedded parens |
Date: | Sun, 21 Sep 2003 15:52:57 +0200 |
User-agent: | Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.1) Gecko/20020920 Netscape/7.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |