# $(if-success,,,) # Return if exits with 0, otherwise. if-success = $(shell,{ $(1); } >/dev/null 2>&1 && echo "$(2)" || echo "$(3)") # $(success,) # Return y if exits with 0, n otherwise success = $(if-success,$(1),y,n)