remove source & build directories when not needed to conserve space

This commit is contained in:
Dave Murphy
2005-03-03 09:27:47 +00:00
parent 46ffcc57a4
commit 8992bda8dd
2 changed files with 47 additions and 0 deletions

View File

@@ -23,6 +23,11 @@ $MAKE install | tee binutils_install.log 2>&1
cd $BUILDSCRIPTDIR
#---------------------------------------------------------------------------------
# remove temp stuff to conserve disc space
#---------------------------------------------------------------------------------
rm -fr $target/binutils
rm -fr $BINUTILS_SRCDIR
#---------------------------------------------------------------------------------
# build and install just the c compiler
@@ -57,6 +62,12 @@ cd $target/newlib
$MAKE all | tee newlib_make.log 2>&1
$MAKE install | tee newlib_install.log 2>&1
#---------------------------------------------------------------------------------
# remove temp stuff to conserve disc space
#---------------------------------------------------------------------------------
rm -fr $target/newlib
rm -fr $NEWLIB_SRCDIR
#---------------------------------------------------------------------------------
# build and install the final compiler
#---------------------------------------------------------------------------------
@@ -66,3 +77,9 @@ cd $target/gcc
$MAKE | tee gcc_final_make.log 2>&1
$MAKE install | tee gcc_final_install.log 2>&1
#---------------------------------------------------------------------------------
# remove temp stuff to conserve disc space
#---------------------------------------------------------------------------------
rm -fr $target/gcc
rm -fr $GCC_SRCDIR