xref: /freebsd/contrib/bmake/unit-tests/order.mk (revision d8a0fe102c0cfdfcd5b818f850eff09d8536c9bc)
1# $NetBSD: order.mk,v 1.1 2014/08/21 13:44:51 apb Exp $
2
3# Test that .ORDER is handled correctly.
4# The explicit dependency the.o: the.h will make us examine the.h
5# the .ORDER will prevent us building it immediately,
6# we should then examine the.c rather than stop.
7
8all: the.o
9
10.ORDER: the.c the.h
11
12the.c the.h:
13	@echo Making $@
14
15.SUFFIXES: .o .c
16
17.c.o:
18	@echo Making $@ from $?
19
20the.o: the.h
21