Home | History | Annotate | Line # | Download | only in unit-tests
export.mk revision 1.2
      1  1.2  rillig # $Id: export.mk,v 1.2 2020/07/27 19:45:56 rillig Exp $
      2  1.1     apb 
      3  1.1     apb UT_TEST=export
      4  1.1     apb UT_FOO=foo${BAR}
      5  1.1     apb UT_FU=fubar
      6  1.1     apb UT_ZOO=hoopie
      7  1.1     apb UT_NO=all
      8  1.1     apb # belive it or not, we expect this one to come out with $UT_FU unexpanded.
      9  1.1     apb UT_DOLLAR= This is $$UT_FU
     10  1.1     apb 
     11  1.1     apb .export UT_FU UT_FOO
     12  1.1     apb .export UT_DOLLAR
     13  1.1     apb # this one will be ignored
     14  1.1     apb .export .MAKE.PID
     15  1.1     apb 
     16  1.1     apb BAR=bar is ${UT_FU}
     17  1.1     apb 
     18  1.1     apb .MAKE.EXPORTED+= UT_ZOO UT_TEST
     19  1.1     apb 
     20  1.2  rillig FILTER_CMD?=	grep -v -E '^(MAKEFLAGS|PATH|PWD)='
     21  1.2  rillig 
     22  1.1     apb all:
     23  1.2  rillig 	@env | ${FILTER_CMD} | sort
     24