freebsd-dev/external/bsd/bmake/dist/unit-tests/doterror

21 lines
244 B
Plaintext
Raw Normal View History

# $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