Home | History | Annotate | Line # | Download | only in unit-tests
      1  1.1  rillig # $NetBSD: gnode-submake.mk,v 1.1 2020/11/07 23:25:06 rillig Exp $
      2  1.1  rillig #
      3  1.1  rillig # Test whether OP_SUBMAKE is determined correctly.  If it is, this node's
      4  1.1  rillig # shell commands are connected to the make process via pipes, to coordinate
      5  1.1  rillig # the number of running jobs.
      6  1.1  rillig #
      7  1.1  rillig # Determining whether a node is a sub-make node happens when the node is
      8  1.1  rillig # parsed.  This information is only used in parallel mode, but the result
      9  1.1  rillig # from parsing is available in compat mode as well.
     10  1.1  rillig 
     11  1.1  rillig .MAKEFLAGS: -n -dg1
     12  1.1  rillig 
     13  1.1  rillig all: makeinfo make-index
     14  1.1  rillig all: braces-dot braces-no-dot
     15  1.1  rillig all: braces-no-dot-modifier
     16  1.1  rillig all: parentheses-dot parentheses-no-dot
     17  1.1  rillig 
     18  1.1  rillig makeinfo:
     19  1.1  rillig 	# The command contains the substring "make", but not as a whole word.
     20  1.1  rillig 	: makeinfo submake
     21  1.1  rillig 
     22  1.1  rillig make-index:
     23  1.1  rillig 	# The command contains the word "make", therefore it is considered a
     24  1.1  rillig 	# possible sub-make.  It isn't really, but that doesn't hurt.
     25  1.1  rillig 	: make-index
     26  1.1  rillig 
     27  1.1  rillig braces-dot:
     28  1.1  rillig 	: ${.MAKE}
     29  1.1  rillig 
     30  1.1  rillig braces-no-dot:
     31  1.1  rillig 	: ${MAKE}
     32  1.1  rillig 
     33  1.1  rillig braces-no-dot-modifier:
     34  1.1  rillig 	# The command refers to MAKE, but not in its pure form.  Therefore it
     35  1.1  rillig 	# is not considered a sub-make.
     36  1.1  rillig 	: ${MAKE:T}
     37  1.1  rillig 
     38  1.1  rillig parentheses-dot:
     39  1.1  rillig 	: $(.MAKE)
     40  1.1  rillig 
     41  1.1  rillig parentheses-no-dot:
     42  1.1  rillig 	: $(MAKE)
     43