summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDan Nicholson <[email protected]>2009-08-03 08:35:43 -0700
committerDan Nicholson <[email protected]>2009-08-04 06:30:46 -0700
commit9185a61c8a549e26e83d73e6e1fe9c65e5b88707 (patch)
tree869ba939a44baa593516ad31f06c36a9b5bd89dc /bin
parent0ce73f84e9f4d992c1108ce2c84718bc0fcada96 (diff)
mklib: Ensure target directory exists for library
Instead of relying on the Makefile to always generate $(TOP)/$(LIB_DIR), just have mklib handle creating the directory. This should fix any races when using parallel make. Signed-off-by: Dan Nicholson <[email protected]> (cherry picked from commit 23671e5358ffc0abfec83aeea9a515b09a6b35f3)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mklib1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/mklib b/bin/mklib
index 24449450068..db97087c0a6 100755
--- a/bin/mklib
+++ b/bin/mklib
@@ -971,5 +971,6 @@ esac
#
if [ ${INSTALLDIR} != "." ] ; then
echo "mklib: Installing" ${FINAL_LIBS} "in" ${INSTALLDIR}
+ test -d ${INSTALLDIR} || mkdir -p ${INSTALLDIR}
mv ${FINAL_LIBS} ${INSTALLDIR}/
fi