summaryrefslogblamecommitdiff
path: root/usr.bin/make/unit-tests/unexport-env.mk
blob: b8192f1dd60c47b383b62d52ebb6b14275dce53b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                          
# $Id: unexport-env.mk,v 1.1 2014/08/21 13:44:52 apb Exp $

# pick up a bunch of exported vars
.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