NetBSD/usr.bin/make/unit-tests/unexport-env.mk
rillig e4ca099e63 make(1): use consistent indentation in variable assignments
Initial work by "pkglint -F *.mk", manually adjusted in a few places.
2020-10-24 08:50:17 +00:00

16 lines
372 B
Makefile

# $NetBSD: unexport-env.mk,v 1.4 2020/10/24 08:50:17 rillig Exp $
# pick up a bunch of exported vars
FILTER_CMD= grep ^UT_
.include "export.mk"
# an example of setting up a minimal environment.
PATH= /bin:/usr/bin:/sbin:/usr/sbin
# now clobber the environment to just PATH and UT_TEST
UT_TEST= unexport-env
# this removes everything
.unexport-env
.export PATH UT_TEST