diff options
author | Simon J. Gerraty <sjg@FreeBSD.org> | 2015-04-21 04:40:38 +0000 |
---|---|---|
committer | Simon J. Gerraty <sjg@FreeBSD.org> | 2015-04-21 04:40:38 +0000 |
commit | db29cad8157b2f3afdb890831ddf73da0f4c01c0 (patch) | |
tree | d4404a0b758eb6a0547daa01b5eec4d7df64362f /contrib/bmake/unit-tests/order.mk | |
parent | 3554283a7b05e2b218f7fe4bad83fc2aa341ec1f (diff) | |
parent | 023e89e5efa694577b481488bb5ea251d3ec1966 (diff) |
Merge bmake-20150418
PR: 199486
Notes
Notes:
svn path=/head/; revision=281812
Diffstat (limited to 'contrib/bmake/unit-tests/order.mk')
-rw-r--r-- | contrib/bmake/unit-tests/order.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/bmake/unit-tests/order.mk b/contrib/bmake/unit-tests/order.mk new file mode 100644 index 000000000000..f90b627d9e5f --- /dev/null +++ b/contrib/bmake/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 |