sys.clean-env.mk (f445c897) sys.clean-env.mk (ca58f742)
1# $Id: sys.clean-env.mk,v 1.21 2016/02/18 21:16:40 sjg Exp $
1# $Id: sys.clean-env.mk,v 1.22 2017/10/25 23:44:20 sjg Exp $
2#
3# @(#) Copyright (c) 2009, Simon J. Gerraty
4#
5# This file is provided in the hope that it will
6# be of use. There is absolutely NO WARRANTY.
7# Permission to copy, redistribute or otherwise
8# use this file is hereby granted provided that
9# the above copyright notice and this notice are

--- 82 unchanged lines hidden (view full) ---

92.if defined(MAKEOBJDIR)
93# We are going to set this to the equivalent of the shell's
94# MAKEOBJDIR='${.CURDIR:S,${SRCTOP},${OBJTOP},}'
95_srctop := ${SRCTOP:U${SB_SRC:U${SB}/src}}
96_objroot := ${OBJROOT:U${SB_OBJROOT:U${SB}/${SB_OBJPREFIX}}}
97.if ${MAKE_VERSION} < 20160218
98_objtop := ${OBJTOP:U${_objroot}${MACHINE}}
99# Take care of ${MACHINE}
2#
3# @(#) Copyright (c) 2009, Simon J. Gerraty
4#
5# This file is provided in the hope that it will
6# be of use. There is absolutely NO WARRANTY.
7# Permission to copy, redistribute or otherwise
8# use this file is hereby granted provided that
9# the above copyright notice and this notice are

--- 82 unchanged lines hidden (view full) ---

92.if defined(MAKEOBJDIR)
93# We are going to set this to the equivalent of the shell's
94# MAKEOBJDIR='${.CURDIR:S,${SRCTOP},${OBJTOP},}'
95_srctop := ${SRCTOP:U${SB_SRC:U${SB}/src}}
96_objroot := ${OBJROOT:U${SB_OBJROOT:U${SB}/${SB_OBJPREFIX}}}
97.if ${MAKE_VERSION} < 20160218
98_objtop := ${OBJTOP:U${_objroot}${MACHINE}}
99# Take care of ${MACHINE}
100.if ${MACHINE} == "host" || ${OBJTOP} == ${HOST_OBJTOP:Uno}
100.if ${MACHINE:Nhost*} == "" || ${OBJTOP} == ${HOST_OBJTOP:Uno}
101OBJTOP = ${_objtop:S,${HOST_TARGET}$,\${MACHINE},}
102.else
103OBJTOP = ${_objtop:S,${MACHINE}$,\${MACHINE},}
104.endif
105# Export like this
106MAKEOBJDIR = $${.CURDIR:S,${_srctop},$${OBJTOP},}
107#.info ${MAKE_SAVE_ENV_VARS _srctop _objroot _objtop OBJTOP MAKEOBJDIR:L:@v@${.newline}$v=${$v}@}
108

--- 22 unchanged lines hidden ---
101OBJTOP = ${_objtop:S,${HOST_TARGET}$,\${MACHINE},}
102.else
103OBJTOP = ${_objtop:S,${MACHINE}$,\${MACHINE},}
104.endif
105# Export like this
106MAKEOBJDIR = $${.CURDIR:S,${_srctop},$${OBJTOP},}
107#.info ${MAKE_SAVE_ENV_VARS _srctop _objroot _objtop OBJTOP MAKEOBJDIR:L:@v@${.newline}$v=${$v}@}
108

--- 22 unchanged lines hidden ---