xref: /freebsd/contrib/bmake/unit-tests/order.mk (revision dad64f0e)
1# $NetBSD: order.mk,v 1.2 2020/11/09 20:50:56 rillig 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
8.MAKEFLAGS: -j1
9
10all: the.o
11
12.ORDER: the.c the.h
13
14the.c the.h:
15	@echo Making $@
16
17.SUFFIXES: .o .c
18
19.c.o:
20	@echo Making $@ from $?
21
22the.o: the.h
23