version 1.213, 2009/09/27 22:02:41 |
version 1.214, 2009/10/03 19:19:59 |
Line 1029 print_tooldir_make() |
|
Line 1029 print_tooldir_make() |
|
# 2. use the temporary nbmake to create the top level obj directory; |
# 2. use the temporary nbmake to create the top level obj directory; |
# 3. use $(getmakevar TOOLDIR) with the temporary nbmake to |
# 3. use $(getmakevar TOOLDIR) with the temporary nbmake to |
# get the corect value of TOOLDIR; |
# get the corect value of TOOLDIR; |
# 4. move the temporary nbake to ${TOOLDIR}/bin/nbmake. |
# 4. move the temporary nbmake to ${TOOLDIR}/bin/nbmake. |
# |
# |
# However, people don't like building nbmake unnecessarily if their |
# However, people don't like building nbmake unnecessarily if their |
# TOOLDIR has not changed since an earlier build. We try to avoid |
# TOOLDIR has not changed since an earlier build. We try to avoid |
Line 1250 createmakewrapper() |
|
Line 1250 createmakewrapper() |
|
${runcmd} mkdir -p "${TOOLDIR}/bin" || |
${runcmd} mkdir -p "${TOOLDIR}/bin" || |
bomb "mkdir of '${TOOLDIR}/bin' failed" |
bomb "mkdir of '${TOOLDIR}/bin' failed" |
|
|
|
# If we did not previously rebuild ${toolprefix}make, then |
|
# check whether $make is still valid and the same as the output |
|
# from print_tooldir_make. If not, then rebuild make now. A |
|
# possible reason for this being necessary is that the actual |
|
# value of TOOLDIR might be different from the value guessed |
|
# before the top level obj dir was created. |
|
# |
|
if ! ${done_rebuildmake} && \ |
|
( [ ! -x "$make" ] || [ "$make" != "$(print_tooldir_make)" ] ) |
|
then |
|
rebuildmake |
|
fi |
|
|
# Install ${toolprefix}make if it was built. |
# Install ${toolprefix}make if it was built. |
# |
# |
if ${done_rebuildmake}; then |
if ${done_rebuildmake}; then |