# $Id: varshell.mk,v 1.6 2020/10/26 17:55:23 sjg Exp $ # $NetBSD: varshell.mk,v 1.4 2020/10/24 08:50:17 rillig Exp $ # # Test VAR != shell command EXEC_FAILED!= /bin/no/such/command 2> /dev/null # SunOS cannot handle this one #TERMINATED_BY_SIGNAL!= kill -14 $$$$ ERROR_NO_OUTPUT!= false ERROR_WITH_OUTPUT!= echo "output before the error"; false NO_ERROR_NO_OUTPUT!= true NO_ERROR_WITH_OUTPUT!= echo "this is good" allvars= EXEC_FAILED TERMINATED_BY_SIGNAL ERROR_NO_OUTPUT ERROR_WITH_OUTPUT \ NO_ERROR_NO_OUTPUT NO_ERROR_WITH_OUTPUT all: .for v in ${allvars} @echo ${v}=\'${${v}}\' .endfor |