xref: /freebsd/contrib/bmake/unit-tests/unexport-env.mk (revision 63d1fd5970ec814904aa0f4580b10a0d302d08b2)
1# $Id: unexport-env.mk,v 1.1.1.1 2014/08/30 18:57:18 sjg Exp $
2
3# pick up a bunch of exported vars
4.include "export.mk"
5
6# an example of setting up a minimal environment.
7PATH = /bin:/usr/bin:/sbin:/usr/sbin
8
9# now clobber the environment to just PATH and UT_TEST
10UT_TEST = unexport-env
11
12# this removes everything
13.unexport-env
14.export PATH UT_TEST
15