summaryrefslogtreecommitdiff
path: root/devel/bmake/files/unit-tests/order.mk
diff options
context:
space:
mode:
Diffstat (limited to 'devel/bmake/files/unit-tests/order.mk')
-rw-r--r--devel/bmake/files/unit-tests/order.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/bmake/files/unit-tests/order.mk b/devel/bmake/files/unit-tests/order.mk
new file mode 100644
index 00000000000..90688730c24
--- /dev/null
+++ b/devel/bmake/files/unit-tests/order.mk
@@ -0,0 +1,20 @@
+# $NetBSD: order.mk,v 1.1.1.1 2015/05/19 21:36:45 joerg Exp $
+
+# Test that .ORDER is handled correctly.
+# The explicit dependency the.o: the.h will make us examine the.h
+# the .ORDER will prevent us building it immediately,
+# we should then examine the.c rather than stop.
+
+all: the.o
+
+.ORDER: the.c the.h
+
+the.c the.h:
+ @echo Making $@
+
+.SUFFIXES: .o .c
+
+.c.o:
+ @echo Making $@ from $?
+
+the.o: the.h