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)
o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable checks in InitObjdir. Explicit .OBJDIR target always allows read-only directory. o Fix building and unit-tests on non-BSD. o More code cleanup and refactoring. o More unit tests
32 lines
689 B
Makefile
32 lines
689 B
Makefile
# $NetBSD: directive-unexport.mk,v 1.5 2020/11/03 17:17:31 rillig Exp $
|
|
#
|
|
# Tests for the .unexport directive.
|
|
|
|
# TODO: Implementation
|
|
|
|
# First, export 3 variables.
|
|
UT_A= a
|
|
UT_B= b
|
|
UT_C= c
|
|
.export UT_A UT_B UT_C
|
|
|
|
# Show the exported variables and their values.
|
|
.info ${:!env|sort|grep '^UT_'!}
|
|
.info ${.MAKE.EXPORTED}
|
|
|
|
# XXX: Now try to unexport all of them. The variables are still exported
|
|
# but not mentioned in .MAKE.EXPORTED anymore.
|
|
# See the ":N" in Var_UnExport for the implementation.
|
|
*= asterisk
|
|
.unexport *
|
|
|
|
.info ${:!env|sort|grep '^UT_'!}
|
|
.info ${.MAKE.EXPORTED}
|
|
|
|
.unexpor # misspelled
|
|
.unexport # oops: missing argument
|
|
.unexporting works # oops: misspelled
|
|
|
|
all:
|
|
@:;
|