Home | History | Annotate | Line # | Download | only in unit-tests
      1  1.3  rillig # $NetBSD: dep-colon.mk,v 1.3 2020/10/17 20:10:04 rillig Exp $
      2  1.1  rillig #
      3  1.2  rillig # Tests for the : operator in dependency declarations.
      4  1.1  rillig 
      5  1.1  rillig # TODO: Implementation
      6  1.1  rillig 
      7  1.3  rillig # In a dependency declaration line, there may be a shell command after the
      8  1.3  rillig # sources.  It is separated by a semicolon.  This "feature" is required by
      9  1.3  rillig # POSIX.  It is seldom used, if at all.
     10  1.3  rillig all: target1
     11  1.3  rillig target1: source1; @echo making ${.TARGET} from ${.ALLSRC}
     12  1.3  rillig source1: .PHONY
     13  1.3  rillig 
     14  1.3  rillig # The semicolon for separating the sources from the creation commands must
     15  1.3  rillig # appear at the top-level.  The semicolons inside the :S;1;2; modifier are
     16  1.3  rillig # skipped when looking for the semicolon that separates the sources from
     17  1.3  rillig # the commands.
     18  1.3  rillig all: target2
     19  1.3  rillig target2: source${:U1:S;1;2;}; @echo making ${.TARGET} from ${.ALLSRC}
     20  1.3  rillig source2: .PHONY
     21