1*06b9b3e0SSimon J. Gerraty# $NetBSD: suff-clear-regular.mk,v 1.2 2020/12/07 00:53:30 rillig Exp $ 2956e45f6SSimon J. Gerraty# 3956e45f6SSimon J. Gerraty# https://gnats.netbsd.org/49086, issue 4: 4956e45f6SSimon J. Gerraty# Suffix rules do not become regular rules when .SUFFIXES is cleared. 5956e45f6SSimon J. Gerraty 6956e45f6SSimon J. Gerratyall: .a .a.b .b.a 7956e45f6SSimon J. Gerraty 8956e45f6SSimon J. Gerraty.SUFFIXES: .a .b .c 9956e45f6SSimon J. Gerraty 10956e45f6SSimon J. Gerraty# At this point, .a and .b are known suffixes, therefore the following 11956e45f6SSimon J. Gerraty# targets are interpreted as transformation rules. 12956e45f6SSimon J. Gerraty.a .a.b .b.a: 13956e45f6SSimon J. Gerraty : 'Making ${.TARGET} from ${.IMPSRC}.' 14956e45f6SSimon J. Gerraty 15956e45f6SSimon J. Gerraty# The empty .SUFFIXES discards all previous suffixes. 16956e45f6SSimon J. Gerraty# This means the above rules should be turned into regular targets. 17956e45f6SSimon J. Gerraty.SUFFIXES: 18956e45f6SSimon J. Gerraty 19956e45f6SSimon J. Gerraty# XXX: As of 2020-10-20, the result is unexpected. 20956e45f6SSimon J. Gerraty# XXX: .a.b is still a transformation rule. 21956e45f6SSimon J. Gerraty# XXX: .a belongs to "Files that are only sources". 22956e45f6SSimon J. Gerraty# XXX: .a.b belongs to "Files that are only sources". 23956e45f6SSimon J. Gerraty# XXX: .b.a belongs to "Files that are only sources". 24956e45f6SSimon J. Gerraty# XXX: .a is listed in "Transformations". 25956e45f6SSimon J. Gerraty# XXX: .a.b is listed in "Transformations". 26956e45f6SSimon J. Gerraty# XXX: .b.a is listed in "Transformations". 27956e45f6SSimon J. Gerraty# XXX: don't know how to make .a 28956e45f6SSimon J. Gerraty# XXX: don't know how to make .a.b 29956e45f6SSimon J. Gerraty# XXX: don't know how to make .b.a 30956e45f6SSimon J. Gerraty#.MAKEFLAGS: -dg1 31