1 1.1 apb # $Id: export-env.mk,v 1.1 2014/08/21 13:44:51 apb Exp $ 2 1.1 apb 3 1.1 apb # our normal .export, subsequent changes affect the environment 4 1.1 apb UT_TEST=this 5 1.1 apb .export UT_TEST 6 1.1 apb UT_TEST:= ${.PARSEFILE} 7 1.1 apb 8 1.1 apb # not so with .export-env 9 1.1 apb UT_ENV=exported 10 1.1 apb .export-env UT_ENV 11 1.1 apb UT_ENV=not-exported 12 1.1 apb 13 1.1 apb # gmake style export goes further; affects nothing but the environment 14 1.1 apb UT_EXP=before-export 15 1.1 apb export UT_EXP=exported 16 1.1 apb UT_EXP=not-exported 17 1.1 apb 18 1.1 apb all: 19 1.1 apb @echo make:; ${UT_TEST UT_ENV UT_EXP:L:@v@echo $v=${$v};@} 20 1.1 apb @echo env:; ${UT_TEST UT_ENV UT_EXP:L:@v@echo $v=$${$v};@} 21 1.1 apb 22 1.1 apb 23 1.1 apb 24 1.1 apb 25