minix/usr.bin/make/unit-tests/doterror

21 lines
240 B
Text
Raw Normal View History

2012-06-06 16:24:31 +02:00
# $Id: doterror,v 1.1 2010/04/08 17:41:29 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