1 # $NetBSD: directive-export.mk,v 1.4 2020/11/03 17:17:31 rillig Exp $
3 # Tests for the .export directive.
8 VAR= value $$ ${INDIRECT}
10 # A variable is exported using the .export directive.
11 # During that, its value is expanded, just like almost everywhere else.
13 .if ${:!env | grep '^VAR'!} != "VAR=value \$ indirect"
17 # Undefining a variable that has been exported implicitly removes it from
18 # the environment of all child processes.
20 .if ${:!env | grep '^VAR' || true!} != ""
24 # Tests for parsing the .export directive.
26 .export # oops: missing argument
28 .exporting works # oops: misspelled