xref: /freebsd/contrib/bmake/unit-tests/deptgt-order.mk (revision e87ec409fa9b21abf79895837fe375ab3d7e408a)
1# $NetBSD: deptgt-order.mk,v 1.4 2021/12/13 23:38:54 rillig Exp $
2#
3# Tests for the special target .ORDER in dependency declarations.
4
5all one two three: .PHONY
6
7two: one
8	: 'Making $@ out of $>.'
9three: two
10	: 'Making $@ out of $>.'
11
12# This .ORDER creates a circular dependency since 'three' depends on 'one'
13# but 'one' is supposed to be built after 'three'.
14.MAKEFLAGS: -dp
15.ORDER: three one
16.MAKEFLAGS: -d0
17
18# XXX: The circular dependency should be detected here.
19all: three
20	: 'Making $@ out of $>.'
21