mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00:00
![Simon J. Gerraty](/assets/img/avatar_default.png)
Lots of new unit-tests increase code coverage. Lots of refactoring, cleanup and simlpification to reduce code size. Fixes for Bug 223564 and 245807 Updates to dirdeps.mk and meta2deps.py
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# $NetBSD: export.mk,v 1.10 2020/10/24 08:50:17 rillig Exp $
|
|
|
|
UT_TEST= export
|
|
UT_FOO= foo${BAR}
|
|
UT_FU= fubar
|
|
UT_ZOO= hoopie
|
|
UT_NO= all
|
|
# believe it or not, we expect this one to come out with $UT_FU unexpanded.
|
|
UT_DOLLAR= This is $$UT_FU
|
|
|
|
.export UT_FU UT_FOO
|
|
.export UT_DOLLAR
|
|
|
|
.if !defined(.MAKE.PID)
|
|
. error .MAKE.PID must be defined
|
|
.endif
|
|
@= at
|
|
%= percent
|
|
*= asterisk
|
|
${:U!}= exclamation # A direct != would try to run "exclamation"
|
|
# as a shell command and assign its output
|
|
# to the empty variable.
|
|
&= ampersand
|
|
|
|
# This is ignored because it is internal.
|
|
.export .MAKE.PID
|
|
# These are ignored because they are local to the target.
|
|
.export @
|
|
.export %
|
|
.export *
|
|
.export !
|
|
# This is exported (see the .rawout file) but not displayed since the dash
|
|
# shell filters it out. To reach consistent output for each shell, the
|
|
# ampersand is filtered out already by FILTER_CMD.
|
|
.export &
|
|
# This is ignored because it is undefined.
|
|
.export UNDEFINED
|
|
|
|
BAR= bar is ${UT_FU}
|
|
|
|
.MAKE.EXPORTED+= UT_ZOO UT_TEST
|
|
|
|
FILTER_CMD?= egrep -v '^(MAKEFLAGS|MALLOC_OPTIONS|PATH|PWD|SHLVL|_|&)='
|
|
|
|
all:
|
|
@env | ${FILTER_CMD} | sort
|