xref: /freebsd/contrib/bmake/unit-tests/suff-phony.mk (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
1# $NetBSD: suff-phony.mk,v 1.1 2020/11/23 15:00:32 rillig Exp $
2#
3# Test that .PHONY targets are not resolved using suffix rules.
4#
5# The purpose of the .PHONY attribute is to mark them as independent from the
6# file system.
7#
8# See also:
9#	FindDepsRegular, Ctrl+F OP_PHONY
10
11.MAKEFLAGS: -ds
12
13all: .PHONY
14
15.SUFFIXES: .c
16
17.c:
18	: Making ${.TARGET} from ${.IMPSRC}.
19
20all.c:
21	: Making ${.TARGET} out of nothing.
22