summaryrefslogtreecommitdiffstats
path: root/20150505/unit-tests/order.mk
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2015-05-10 20:02:26 +0000
committersjg <sjg@FreeBSD.org>2015-05-10 20:02:26 +0000
commit168edd726ad8a54339e142aec8bee10c893b7326 (patch)
tree1e70dc5e5574c3e64ad07c94b7275fae0b638a40 /20150505/unit-tests/order.mk
parent6b3bd5224a01da593382e075c1de2696c3261ebe (diff)
downloadFreeBSD-src-168edd726ad8a54339e142aec8bee10c893b7326.zip
FreeBSD-src-168edd726ad8a54339e142aec8bee10c893b7326.tar.gz
Tag bmake-20150505
Diffstat (limited to '20150505/unit-tests/order.mk')
-rw-r--r--20150505/unit-tests/order.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/20150505/unit-tests/order.mk b/20150505/unit-tests/order.mk
new file mode 100644
index 0000000..f90b627
--- /dev/null
+++ b/20150505/unit-tests/order.mk
@@ -0,0 +1,20 @@
+# $NetBSD: order.mk,v 1.1 2014/08/21 13:44:51 apb 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
OpenPOWER on IntegriCloud