NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/39802: make(1) :? modifier does not work



The following reply was made to PR bin/39802; it has been noted by GNATS.

From: Alan Barrett <apb%cequrux.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/39802: make(1) :? modifier does not work
Date: Sun, 26 Oct 2008 00:07:01 +0200

 On Sat, 25 Oct 2008, jklowden%schemamania.org@localhost wrote:
 > == snip ==
 > $ cat Makefile.colonq 
 > FOO = foo
 > all:
 >      echo $("0 == 1":?'0 == 1':'0 != 1')
 >      echo $(FOO:Mbar:?"$(FOO) has bar":"no bar in $(FOO)") with ':M'
 >      echo $(empty(BAR):?'BAR is empty':"BAR is not empty?")
 > == pins ==
 > 
 >      I get these results:
 > == snip ==
 > $ make -f Makefile.colonq -s
 > 0 == 1
 > foo has bar with :M
 > Syntax error: ")" unexpected
 > *** Error code 2
 
 If you change the $(...) to ${...} then it works (at least in
 NetBSD-current).
 
 --apb (Alan Barrett)
 


Home | Main Index | Thread Index | Old Index