Home | History | Annotate | Line # | Download | only in unit-tests
      1  1.3  rillig # $NetBSD: suff-transform-select.mk,v 1.3 2020/11/23 14:47:12 rillig Exp $
      2  1.1  rillig #
      3  1.1  rillig # https://gnats.netbsd.org/49086, issue 10:
      4  1.1  rillig # Explicit dependencies affect transformation rule selection.
      5  1.1  rillig #
      6  1.1  rillig # If issue10.e is wanted and both issue10.d and issue10.f are available,
      7  1.1  rillig # make should choose the .d.e rule, because .d is before .f in .SUFFIXES.
      8  1.1  rillig # The bug was that if issue10.d had an explicit dependency on issue10.f,
      9  1.1  rillig # it would choose .f.e instead.
     10  1.1  rillig 
     11  1.2  rillig .MAKEFLAGS: -ds
     12  1.2  rillig 
     13  1.1  rillig _!=	rm -f issue10.*
     14  1.1  rillig 
     15  1.1  rillig all: issue10.e
     16  1.1  rillig 
     17  1.1  rillig .c.d .d.c .d .d.e .e.d:
     18  1.1  rillig 	: 'Making ${.TARGET} from ${.IMPSRC} (first set).'
     19  1.1  rillig 
     20  1.1  rillig .SUFFIXES: .c .d .e .f .g
     21  1.1  rillig 
     22  1.1  rillig .e .e.f .f.e:
     23  1.1  rillig 	: 'Making ${.TARGET} from ${.IMPSRC} (second set).'
     24  1.1  rillig 
     25  1.1  rillig issue10.d issue10.f:
     26  1.1  rillig 	: 'Making ${.TARGET} out of nothing.'
     27  1.1  rillig 
     28  1.1  rillig # XXX: see suff-bug-endless, which must be fixed first.
     29  1.1  rillig #.MAKEFLAGS: -dg1
     30  1.3  rillig 
     31  1.3  rillig # Before 24-11-2020, resolving all.e ran into an endless loop.
     32