diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2012-06-08 21:57:36 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2012-06-08 21:57:36 +0000 |
| commit | b379932fc0f836f9f3f5ac89ef7f6cd38377dff8 (patch) | |
| tree | 18db9ddd684d6278a8a49b3850dc7c757c7e8348 /unit-tests/doterror | |
| parent | 3e4da6f5b3dfa3b4ff9caabcbc673d721a1a9bf0 (diff) | |
Import the 6-May-2012 release of the "Portable" BSD make tool (from NetBSD).vendor/NetBSD/bmake/20120606
Submitted by: sjg@juniper.net
Diffstat (limited to 'unit-tests/doterror')
| -rw-r--r-- | unit-tests/doterror | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/unit-tests/doterror b/unit-tests/doterror new file mode 100644 index 000000000000..75d8920ac7e7 --- /dev/null +++ b/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 + |
