xref: /freebsd/contrib/bmake/unit-tests/suff-phony.mk (revision dd41de95a84d979615a2ef11df6850622bf6184e)
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