suff-incomplete.mk revision 1.1
11.1Srillig# $NetBSD: suff-incomplete.mk,v 1.1 2020/11/21 10:32:42 rillig Exp $
21.1Srillig#
31.1Srillig# Tests incomplete transformation rules, which are ignored.
41.1Srillig
51.1Srilligall: suff-incomplete.c
61.1Srillig
71.1Srillig.MAKEFLAGS: -dps
81.1Srillig
91.1Srillig.SUFFIXES:
101.1Srillig
111.1Srillig.SUFFIXES: .a .b .c
121.1Srillig
131.1Srillig# This rule has no commands and no dependencies, therefore it is incomplete
141.1Srillig# and not added to the transformation rules.
151.1Srillig#
161.1Srillig# See Suff_EndTransform.
171.1Srillig.a.b:
181.1Srillig
191.1Srillig# This rule has a dependency, therefore it is a complete transformation.
201.1Srillig# Its commands are taken from a .DEFAULT target, if there is any.
211.1Srillig.a.c: ${.PREFIX}.dependency
221.1Srillig
231.1Srillig.DEFAULT:
241.1Srillig	: Making ${.TARGET} from ${.IMPSRC} all ${.ALLSRC} by default.
251.1Srillig
261.1Srillig# XXX: The debug log says "transformation .DEFAULT complete", which is wrong.
271.1Srillig# .DEFAULT is not a transformation.
281.1Srillig
291.1Srillig# XXX: The output of this test says "Making suff-incomplete.c from
301.1Srillig# suff-incomplete.c".  It doesn't make sense to make something out of itself.
31