Created
July 4, 2013 12:13
-
-
Save timaschew/5927171 to your computer and use it in GitHub Desktop.
check return value of a shell script that was executed with make's 'shell'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CHECK := $(shell shell-script param > /dev/null; echo $$?) | |
ifneq ($(CHECK),0) | |
$(error "error message") | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment