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