xref: /freebsd/contrib/bmake/unit-tests/export-all.mk (revision dc318a4ffabcbfa23bb56a33403aad36e6de30af)
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