Home | History | Annotate | Line # | Download | only in unit-tests
deptgt-order.mk revision 1.3
      1  1.3  rillig # $NetBSD: deptgt-order.mk,v 1.3 2021/06/17 15:25:33 rillig Exp $
      2  1.1  rillig #
      3  1.2  rillig # Tests for the special target .ORDER in dependency declarations.
      4  1.1  rillig 
      5  1.3  rillig all one two three: .PHONY
      6  1.1  rillig 
      7  1.3  rillig two: one
      8  1.3  rillig 	: 'Making $@ out of $>.'
      9  1.3  rillig three: two
     10  1.3  rillig 	: 'Making $@ out of $>.'
     11  1.3  rillig 
     12  1.3  rillig # This .ORDER creates a circular dependency since 'three' depends on 'one'
     13  1.3  rillig # but 'one' is supposed to be built after 'three'.
     14  1.3  rillig .ORDER: three one
     15  1.3  rillig 
     16  1.3  rillig # XXX: The circular dependency should be detected here.
     17  1.3  rillig all: three
     18  1.3  rillig 	: 'Making $@ out of $>.'
     19