[Top][All Lists]

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

[bug #28092] $(shell false) should break build

From: Timothy N Murphy
Subject: [bug #28092] $(shell false) should break build
Date: Thu, 26 Nov 2009 18:28:25 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv: Gecko/20091105 Fedora/3.5.5-1.fc11 Firefox/3.5.5

Follow-up Comment #5, bug #28092 (project make):


Ok, Mk2 then:

a:=$(shell echo "don't mess up this output"; echo  " $$?")

code:=$(lastword $(a))
output:=$(strip $(patsubst %$(code),%,$(a)))
$(info exit code='$(code)')
$(info output='$(output)')

address@hidden ~]$ make -f t4.mk
exit code='0'
output='don't mess up this output'
make: *** No targets.  Stop.

I think that the $(strip) is a bit of a cheat but it's pretty close to what
should be done.  This could probably be done completely properly with another


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]