Lines Matching +full:- +full:- +full:mode +full:- +full:-
1 # $NetBSD: varname-dot-make-mode.mk,v 1.3 2022/05/07 17:49:47 rillig Exp $
3 # Tests for the special .MAKE.MODE variable.
5 # TODO: test .MAKE.MODE "meta", or see meta mode tests.
6 # TODO: test .MAKE.MODE "compat"
11 all: .PHONY make-mode-randomize-targets
14 # By adding the word "randomize-targets" to the variable .MAKE.MODE, the
16 # mode helps to find undeclared dependencies between files.
19 # Added on 2022-05-07.
23 make-mode-randomize-targets: .PHONY
24 @echo "randomize compat mode:"
25 @${MAKE} -r -f ${MAKEFILE} randomize-targets
27 @echo "randomize jobs mode (-j1):"
28 @${MAKE} -r -f ${MAKEFILE} -j1 randomize-targets
30 @echo "randomize jobs mode (-j5):"
31 @${MAKE} -r -f ${MAKEFILE} -j5 randomize-targets | grep '^:'
33 .if make(randomize-targets)
34 randomize-targets: .WAIT a1 a2 a3 .WAIT b1 b2 b3 .WAIT c1 c2 c3 .WAIT
38 # .MAKE.MODE is evaluated after parsing all files, so it suffices to switch
39 # the mode after defining the targets.
40 .MAKE.MODE+= randomize-targets