Skip to content

Instantly share code, notes, and snippets.

@timaschew
Created July 4, 2013 12:13
Show Gist options
  • Save timaschew/5927171 to your computer and use it in GitHub Desktop.
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'
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