xref: /freebsd/contrib/bmake/unit-tests/export-all.mk (revision b64c5a0ace59af62eff52bfe110a521dc73c937b)
1# $NetBSD: export-all.mk,v 1.6 2024/06/01 06:26:36 sjg 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-all
19
20FILTER_CMD=	grep ^UT_
21.include "export.mk"
22
23UT_TEST=	export-all
24UT_ALL=		even this gets exported
25