1*06b9b3e0SSimon J. Gerraty# $NetBSD: suff-incomplete.mk,v 1.2 2020/11/22 11:05:49 rillig Exp $ 2*06b9b3e0SSimon J. Gerraty# 3*06b9b3e0SSimon J. Gerraty# Tests incomplete transformation rules, which are ignored. 4*06b9b3e0SSimon J. Gerraty 5*06b9b3e0SSimon J. Gerratyall: suff-incomplete.c 6*06b9b3e0SSimon J. Gerraty 7*06b9b3e0SSimon J. Gerraty.MAKEFLAGS: -dps 8*06b9b3e0SSimon J. Gerraty 9*06b9b3e0SSimon J. Gerraty.SUFFIXES: 10*06b9b3e0SSimon J. Gerraty 11*06b9b3e0SSimon J. Gerraty.SUFFIXES: .a .b .c 12*06b9b3e0SSimon J. Gerraty 13*06b9b3e0SSimon J. Gerraty# This rule has no commands and no dependencies, therefore it is incomplete 14*06b9b3e0SSimon J. Gerraty# and not added to the transformation rules. 15*06b9b3e0SSimon J. Gerraty# 16*06b9b3e0SSimon J. Gerraty# See Suff_EndTransform. 17*06b9b3e0SSimon J. Gerraty.a.b: 18*06b9b3e0SSimon J. Gerraty 19*06b9b3e0SSimon J. Gerraty# This rule has a dependency, therefore it is a complete transformation. 20*06b9b3e0SSimon J. Gerraty# Its commands are taken from a .DEFAULT target, if there is any. 21*06b9b3e0SSimon J. Gerraty.a.c: ${.PREFIX}.dependency 22*06b9b3e0SSimon J. Gerraty 23*06b9b3e0SSimon J. Gerraty.DEFAULT: 24*06b9b3e0SSimon J. Gerraty : Making ${.TARGET} from ${.IMPSRC} all ${.ALLSRC} by default. 25*06b9b3e0SSimon J. Gerraty 26*06b9b3e0SSimon J. Gerraty# The debug log says "transformation .DEFAULT complete", which seems wrong 27*06b9b3e0SSimon J. Gerraty# on the first sight. It is intentionally done though, in the call to 28*06b9b3e0SSimon J. Gerraty# GNode_New(".DEFAULT"). 29*06b9b3e0SSimon J. Gerraty 30*06b9b3e0SSimon J. Gerraty# XXX: The output of this test says "Making suff-incomplete.c from 31*06b9b3e0SSimon J. Gerraty# suff-incomplete.c". It doesn't make sense to make something out of itself. 32