Update of bug #28092 (project make): Item Group: None => Enhancement
_______________________________________________________ Follow-up Comment #1: There's no way $(shell ...) failing can or should cause make to stop. There are many legitimate reasons why the shell exiting with an error should not cause make to fail, and adding this would be an enormous backward-compatibility break. For your situation, you can just check to see whether the result of the variable was valid; this will also catch the situation where there's an empty file as well as a non-existent one: a := $(shell cat version.txt) ifeq (,$(a)) $(error version.txt does not contain a valid version) endif I agree it might be useful to find out the exit code of the last $(shell ...) function invocation, so I'm leaving this open as an enhancement request to create a variable containing the exit code of the last $(shell ...) invocation. _______________________________________________________ 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