xref: /freebsd/contrib/bmake/unit-tests/deptgt-phony.mk (revision 2e3507c25e42292b45a5482e116d278f5515d04d)
1# $NetBSD: deptgt-phony.mk,v 1.3 2022/02/11 23:44:18 rillig Exp $
2#
3# Tests for the special target .PHONY in dependency declarations.
4
5# TODO: Implementation
6
7all:
8
9
10# https://gnats.netbsd.org/15164 describes that .PHONY targets are still
11# looked up in directories, even though .PHONY means that these targets do
12# _not_ correspond to actual files.
13#
14# expect: Expanding "depsrc-phony-pr-15164-*-wildcard"...
15# expect: Expanding "deptgt-phony-pr-15164-*-wildcard"...
16.MAKEFLAGS: -dds
17depsrc-phony-pr-15164: .PHONY
18	: Making ${.TARGET}
19depsrc-phony-pr-15164-*-wildcard: .PHONY
20	: Making ${.TARGET}
21
22.PHONY: deptgt-phony-pr-15164
23deptgt-phony-pr-15164:
24	: Making ${.TARGET}
25
26.PHONY: deptgt-phony-pr-15164-*-wildcard
27deptgt-phony-pr-15164-*-wildcard:
28	: Making ${.TARGET}
29
30all: depsrc-phony-pr-15164 depsrc-phony-pr-15164-*-wildcard
31all: deptgt-phony-pr-15164 deptgt-phony-pr-15164-*-wildcard
32