1 # $NetBSD: cond-func-make.mk,v 1.3 2020/09/25 20:11:06 rillig Exp $
3 # Tests for the make() function in .if conditions, which tests whether
4 # the argument has been passed as a target via the command line or later
5 # via the .MAKEFLAGS special dependency target.
10 .if make(via-dot-makeflags)
14 .MAKEFLAGS: via-dot-makeflags
16 .if !make(via-cmdline)
19 .if !make(via-dot-makeflags)
23 via-cmdline via-dot-makeflags: