summaryrefslogtreecommitdiffstats
path: root/20150505/unit-tests/doterror.mk
diff options
context:
space:
mode:
Diffstat (limited to '20150505/unit-tests/doterror.mk')
-rw-r--r--20150505/unit-tests/doterror.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/20150505/unit-tests/doterror.mk b/20150505/unit-tests/doterror.mk
new file mode 100644
index 0000000..9030dce
--- /dev/null
+++ b/20150505/unit-tests/doterror.mk
@@ -0,0 +1,20 @@
+# $Id: doterror.mk,v 1.1.1.1 2014/08/30 18:57:18 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
+
OpenPOWER on IntegriCloud