summaryrefslogtreecommitdiff
path: root/unit-tests/order
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/order')
-rw-r--r--unit-tests/order20
1 files changed, 20 insertions, 0 deletions
diff --git a/unit-tests/order b/unit-tests/order
new file mode 100644
index 0000000..175da47
--- /dev/null
+++ b/unit-tests/order
@@ -0,0 +1,20 @@
+# $NetBSD: order,v 1.1 2012/11/09 19:08:28 sjg 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