xref: /freebsd/contrib/bmake/unit-tests/export-all.mk (revision ae41709ab46305df80f7f35bb478a3c8ebf22ebb)
1# $Id: export-all.mk,v 1.1.1.3 2020/07/28 16:57:18 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
19
20FILTER_CMD=	grep ^UT_
21.include "export.mk"
22
23UT_TEST=export-all
24UT_ALL=even this gets exported
25