af117d16cb
PR: 199486
20 lines
541 B
Makefile
20 lines
541 B
Makefile
# $Id: varshell.mk,v 1.4 2015/04/20 03:16:39 sjg 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
|