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