Changeset e909d9d for jhalfs


Ignore:
Timestamp:
10/02/2005 10:28:59 AM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
0.2, 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
97a3ffc
Parents:
3cfe871
Message:

Added Makefile dependencies trakking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jhalfs

    r3cfe871 re909d9d  
    290290    name=`echo $i | sed -e 's@[0-9]\{3\}-@@' -e 's@-pass[0-9]\{1\}@@'`
    291291
    292     # Drop in the name of the target on a new line.
    293     echo -e "\n$i:" >> $MKFILE.tmp
     292    # Set the dependency for the first target.
     293    if [ -z $PREV ] ; then PREV=022-settingenvironment ; fi
     294
     295    # Drop in the name of the target on a new line, and the previous target
     296    # as a dependency.
     297    echo -e "\n$i:  $PREV" >> $MKFILE.tmp
    294298
    295299    # Find the version of the command files, if it corresponds with the building of
     
    391395    echo -e "\t\techo \"The build of \$@ has failed\" && exit 1; \\" >> $MKFILE.tmp
    392396    echo -e "\tfi;" >> $MKFILE.tmp
     397
     398    # Keep the script file name for Makefile dependencies.
     399    PREV=$i
    393400  done
    394401
     
    438445  echo -e "\ttouch \$@\n" >> $MKFILE
    439446
    440   echo "021-addinguser:" >> $MKFILE
     447  echo "021-addinguser:  020-creatingtoolsdir" >> $MKFILE
    441448  echo -e "\tgroupadd lfs && \\" >> $MKFILE
    442449  echo -e "\tuseradd -s /bin/bash -g lfs -m -k /dev/null lfs && \\" >> $MKFILE
     
    447454  echo -e "\ttouch \$@\n" >> $MKFILE
    448455
    449   echo "022-settingenvironment:" >> $MKFILE
     456  echo "022-settingenvironment:  021-addinguser" >> $MKFILE
    450457  echo -e "\techo \"exec env -i HOME=\\\$\$HOME TERM=\\\$\$TERM PS1='\u:\w\$$ ' /bin/bash\" > /home/lfs/.bash_profile && \\" >> $MKFILE
    451458  echo -e "\techo \"set +h\" > /home/lfs/.bashrc && \\" >> $MKFILE
Note: See TracChangeset for help on using the changeset viewer.