version 1.13, 2007/05/01 08:31:13 |
version 1.14, 2013/11/22 15:43:18 |
|
|
. else |
. else |
|
|
. if defined(MAKEOBJDIR) |
. if defined(MAKEOBJDIR) |
__baseobjdir= ${MAKEOBJDIR} |
__objdir= ${MAKEOBJDIR} |
. else |
. else |
__baseobjdir= obj |
__objdir= obj |
. endif |
. endif |
|
|
. if defined(OBJMACHINE) |
|
__objdir= ${__baseobjdir}.${MACHINE} |
|
. else |
|
__objdir= ${__baseobjdir} |
|
. endif |
|
|
|
. if defined(USR_OBJMACHINE) |
|
__usrobjdir= ${BSDOBJDIR}.${MACHINE} |
|
__usrobjdirpf= |
|
. else |
|
__usrobjdir= ${BSDOBJDIR} |
|
. if defined(OBJMACHINE) |
|
__usrobjdirpf= .${MACHINE} |
|
. else |
|
__usrobjdirpf= |
|
. endif |
|
. endif |
|
|
|
_SUBDIRUSE: |
_SUBDIRUSE: |
|
|
obj! _SUBDIRUSE |
obj! _SUBDIRUSE |
|
|
here=`/bin/pwd`; bsdsrcdir=`cd ${BSDSRCDIR}; /bin/pwd`; \ |
here=`/bin/pwd`; bsdsrcdir=`cd ${BSDSRCDIR}; /bin/pwd`; \ |
subdir=$${here#$${bsdsrcdir}/}; \ |
subdir=$${here#$${bsdsrcdir}/}; \ |
if test $$here != $$subdir ; then \ |
if test $$here != $$subdir ; then \ |
dest=${__usrobjdir}/$$subdir${__usrobjdirpf} ; \ |
dest=${BSDOBJDIR}/$$subdir ; \ |
echo "$$here/${__objdir} -> $$dest"; \ |
echo "$$here/${__objdir} -> $$dest"; \ |
if test ! -L ${__objdir} -o \ |
if test ! -L ${__objdir} -o \ |
X`readlink ${__objdir}` != X$$dest; \ |
X`readlink ${__objdir}` != X$$dest; \ |
|
|
if test -e ${__objdir}; then rm -rf ${__objdir}; fi; \ |
if test -e ${__objdir}; then rm -rf ${__objdir}; fi; \ |
ln -sf $$dest ${__objdir}; \ |
ln -sf $$dest ${__objdir}; \ |
fi; \ |
fi; \ |
if test -d ${__usrobjdir}; then \ |
if test -d ${BSDOBJDIR}; then \ |
test -d $$dest || mkdir -p $$dest; \ |
test -d $$dest || mkdir -p $$dest; \ |
else \ |
else \ |
if test -e ${__usrobjdir}; then \ |
if test -e ${BSDOBJDIR}; then \ |
echo "${__usrobjdir} is not a directory"; \ |
echo "${BSDOBJDIR} is not a directory"; \ |
else \ |
else \ |
echo "${__usrobjdir} does not exist"; \ |
echo "${BSDOBJDIR} does not exist"; \ |
fi; \ |
fi; \ |
fi; \ |
fi; \ |
else \ |
else \ |