xref: /freebsd/contrib/bmake/unit-tests/doterror.mk (revision 5819c3eb8a1e2ac0a4f96a3aff5fefac276ae581)
1# $Id: doterror.mk,v 1.1.1.1 2014/08/30 18:57:18 sjg Exp $
2
3
4.BEGIN:
5	@echo At first, I am
6
7.END:
8	@echo not reached
9
10.ERROR:
11	@echo "$@: Looks like '${.ERROR_TARGET}' is upset."
12
13all:	happy sad
14
15happy:
16	@echo $@
17
18sad:
19	@echo and now: $@; exit 1
20
21