xref: /freebsd/contrib/bmake/unit-tests/depsrc-phony.mk (revision a90b9d0159070121c221b966469c3e36d912bf82)
1# $NetBSD: depsrc-phony.mk,v 1.4 2024/04/27 20:41:32 rillig Exp $
2#
3# Tests for the special source .PHONY in dependency declarations,
4# which executes the commands for the target even if a file of the same
5# name exists and would be considered up to date.
6
7# Without the .PHONY, this target would be "up to date".
8# expect: : depsrc-phony.mk is made.
9${MAKEFILE}: .PHONY
10	: ${.TARGET:T} is made.
11