Follow-up Comment #5, bug #28092 (project make): Hi,
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)') [tnmur...@4gbl06592 ~]$ 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 patsubst. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?28092> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make