5799b4a242
Currently the unit tests don't cover exporting of local variables like .TARGET or @. To see the effects, all exported variables must be listed by the tests.
25 lines
456 B
Makefile
25 lines
456 B
Makefile
# $Id: export-all.mk,v 1.3 2020/07/27 19:45:56 rillig Exp $
|
|
|
|
UT_OK=good
|
|
UT_F=fine
|
|
|
|
# the old way to do :tA
|
|
M_tAbad = C,.*,cd & \&\& 'pwd',:sh
|
|
# the new
|
|
M_tA = tA
|
|
|
|
here := ${.PARSEDIR}
|
|
|
|
# this will cause trouble (recursing if we let it)
|
|
UT_BADDIR = ${${here}/../${here:T}:L:${M_tAbad}:T}
|
|
# this will be ok
|
|
UT_OKDIR = ${${here}/../${here:T}:L:${M_tA}:T}
|
|
|
|
.export
|
|
|
|
FILTER_CMD= grep ^UT_
|
|
.include "export.mk"
|
|
|
|
UT_TEST=export-all
|
|
UT_ALL=even this gets exported
|