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