1 1.4 rillig # $NetBSD: directive-unexport-env.mk,v 1.4 2020/12/06 16:06:11 rillig Exp $ 2 1.1 rillig # 3 1.2 rillig # Tests for the .unexport-env directive. 4 1.1 rillig 5 1.1 rillig # TODO: Implementation 6 1.1 rillig 7 1.3 rillig .unexport-en # oops: misspelled 8 1.3 rillig .unexport-env # ok 9 1.3 rillig .unexport-environment # oops: misspelled 10 1.3 rillig 11 1.4 rillig # Before 2020-12-06, the directive unexport-env was implemented strangely. 12 1.4 rillig # According to its documentation, it does not take any arguments, but the 13 1.4 rillig # Implementation accepted variable names as arguments and produced wrong debug 14 1.4 rillig # logging for them, saying "Unexporting" for variables that at this point were 15 1.4 rillig # not exported anymore. 16 1.4 rillig .MAKEFLAGS: -dv 17 1.4 rillig UT_EXPORTED= value 18 1.4 rillig UT_UNEXPORTED= value 19 1.4 rillig .export UT_EXPORTED 20 1.4 rillig .unexport-env UT_EXPORTED UT_UNEXPORTED 21 1.4 rillig .MAKEFLAGS: -d0 22 1.4 rillig 23 1.1 rillig all: 24 1.1 rillig @:; 25