xref: /freebsd/contrib/bmake/unit-tests/export-all.mk (revision 517e52b6c21ccff22c46df0dcd15c19baee3d86c)
1# $NetBSD: export-all.mk,v 1.5 2020/10/24 08:50:17 rillig Exp $
2
3UT_OK=	good
4UT_F=	fine
5
6# the old way to do :tA
7M_tAbad=	C,.*,cd & \&\& 'pwd',:sh
8# the new
9M_tA=		tA
10
11here := ${.PARSEDIR}
12
13# this will cause trouble (recursing if we let it)
14UT_BADDIR=	${${here}/../${here:T}:L:${M_tAbad}:T}
15# this will be ok
16UT_OKDIR=	${${here}/../${here:T}:L:${M_tA}:T}
17
18.export
19
20FILTER_CMD=	grep ^UT_
21.include "export.mk"
22
23UT_TEST=	export-all
24UT_ALL=		even this gets exported
25