diff options
Diffstat (limited to '20120704/unit-tests/doterror')
-rw-r--r-- | 20120704/unit-tests/doterror | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/20120704/unit-tests/doterror b/20120704/unit-tests/doterror new file mode 100644 index 0000000..75d8920 --- /dev/null +++ b/20120704/unit-tests/doterror @@ -0,0 +1,20 @@ +# $Id: doterror,v 1.1.1.1 2010/04/08 17:43:00 sjg Exp $ + + +.BEGIN: + @echo At first, I am + +.END: + @echo not reached + +.ERROR: + @echo "$@: Looks like '${.ERROR_TARGET}' is upset." + +all: happy sad + +happy: + @echo $@ + +sad: + @echo and now: $@; exit 1 + |