Fixed the retainig of Binutils and TCL sources directories.

Removed some now uneeded "if" test.
This commit is contained in:
Manuel Canales Esparcia 2005-10-03 18:28:57 +00:00
parent fc8de4996c
commit 7bbd436739

49
jhalfs
View file

@ -395,6 +395,26 @@ build_Makefile() {
echo -e "\tfi;" >> $MKFILE.tmp
fi
fi
# Remove the Binutils pass 1 sources after a successful Adjusting phase.
if [ "$i" = "031-adjusting" ] ; then
echo -e "\t@rm -r \`cat sources-dir\` && \\" >> $MKFILE.tmp
echo -e "\trm -r \$(LFS)\$(SRC)/binutils-build && \\" >> $MKFILE.tmp
echo -e "\trm sources-dir; \\" >> $MKFILE.tmp
fi
# Remove the TCL sources after a successful Expect build.
if [ "$i" = "033-expect" ] ; then
echo -e "\t@rm -r \`cat sources-dir\` && \\" >> $MKFILE.tmp
echo -e "\trm sources-dir; \\" >> $MKFILE.tmp
fi
# Include a touch of the target name so make can check
# if it's already been made.
echo -e "\t@touch \$@" >> $MKFILE.tmp
# The next two "if" must be after the touch to can check if the sources
# directories should be retained or deleted.
if [ "$i" = "027-binutils-pass1" -o "$i" = "036-binutils-pass2" ] ; then
echo -e "\t@if [ ! -e \$@ ] ; then \\" >> $MKFILE.tmp
echo -e "\t\tROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\" >> $MKFILE.tmp
@ -409,27 +429,6 @@ build_Makefile() {
echo -e "\tfi;" >> $MKFILE.tmp
fi
# Remove the Binutils pass 1 sources after a successful Adjusting phase.
if [ "$i" = "031-adjusting" ] ; then
echo -e "\t@if [ -e \$@ ] ; then \\" >> $MKFILE.tmp
echo -e "\t\trm -r \`cat sources-dir\` && \\" >> $MKFILE.tmp
echo -e "\t\trm -r \$(LFS)\$(SRC)/binutils-build && \\" >> $MKFILE.tmp
echo -e "\t\trm sources-dir; \\" >> $MKFILE.tmp
echo -e "\tfi;" >> $MKFILE.tmp
fi
# Remove the TCL sources after a successful Expect build.
if [ "$i" = "033-expect" ] ; then
echo -e "\t@if [ -e \$@ ] ; then \\" >> $MKFILE.tmp
echo -e "\t\trm -r \`cat sources-dir\` && \\" >> $MKFILE.tmp
echo -e "\t\trm sources-dir; \\" >> $MKFILE.tmp
echo -e "\tfi;" >> $MKFILE.tmp
fi
# Include a touch of the target name so make can check
# if it's already been made.
echo -e "\t@touch \$@" >> $MKFILE.tmp
# Keep the script file name for Makefile dependencies.
PREV=$i
done
@ -505,11 +504,9 @@ build_Makefile() {
# Remove the Binutils pass 2 sources after a successful Re-Adjusting phase.
if [ "$i" = "067-readjusting" ] ; then
echo -e "\t@if [ -e \$@ ] ; then \\" >> $MKFILE.tmp
echo -e "\t\trm -r \`cat sources-dir\` && \\" >> $MKFILE.tmp
echo -e "\t\trm -r \$(SRC)/binutils-build && \\" >> $MKFILE.tmp
echo -e "\t\trm sources-dir; \\" >> $MKFILE.tmp
echo -e "\tfi;" >> $MKFILE.tmp
echo -e "\t@rm -r \`cat sources-dir\` && \\" >> $MKFILE.tmp
echo -e "\trm -r \$(SRC)/binutils-build && \\" >> $MKFILE.tmp
echo -e "\trm sources-dir; \\" >> $MKFILE.tmp
fi
# Include a touch of the target name so make can check