github.com/westcoastroms/westcoastroms-build@v0.0.0-20190928114312-2350e5a73030/build/kati/testcase/and.mk (about)

     1  TRUE:=foo
     2  FALSE:=
     3  XY:=x 	y
     4  X:=$(subst y, ,$(XY))
     5  Y:=$(subst x, ,$(XY))
     6  
     7  $(and ${TRUE}, $(info PASS_1))
     8  $(and ${FALSE}, $(info FAIL_2))
     9  # Too many arguments.
    10  $(info $(and ${TRUE}, PASS, PASS))
    11  
    12  $(info $(and ${TRUE}, $(X)  ))
    13  $(info $(and ${TRUE}, $(Y)  ))
    14  $(and ${FALSE} , $(info FAIL_3))
    15  
    16  test:
    17  	echo OK