Home | History | Annotate | Line # | Download | only in unit-tests
suff-transform-select.mk revision 1.1
      1  1.1  rillig # $NetBSD: suff-transform-select.mk,v 1.1 2020/10/20 20:36:53 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.1  rillig _!=	rm -f issue10.*
     12  1.1  rillig 
     13  1.1  rillig all: issue10.e
     14  1.1  rillig 
     15  1.1  rillig .c.d .d.c .d .d.e .e.d:
     16  1.1  rillig 	: 'Making ${.TARGET} from ${.IMPSRC} (first set).'
     17  1.1  rillig 
     18  1.1  rillig .SUFFIXES: .c .d .e .f .g
     19  1.1  rillig 
     20  1.1  rillig .e .e.f .f.e:
     21  1.1  rillig 	: 'Making ${.TARGET} from ${.IMPSRC} (second set).'
     22  1.1  rillig 
     23  1.1  rillig issue10.d issue10.f:
     24  1.1  rillig 	: 'Making ${.TARGET} out of nothing.'
     25  1.1  rillig 
     26  1.1  rillig # XXX: see suff-bug-endless, which must be fixed first.
     27  1.1  rillig #.MAKEFLAGS: -dg1
     28  1.1  rillig .error prevent endless loop
     29