Makefile: don't attempt to fetch the stage3 if stage3 was already run

This commit is contained in:
Albert Hopkins 2010-07-09 20:49:58 -04:00
parent 0e2fb5bda6
commit d500b91164
1 changed files with 4 additions and 2 deletions

View File

@ -55,8 +55,10 @@ preproot: stage3
stage3: make.conf package.use package.keywords locale.gen
mkdir -p $(CHROOT)
wget -c -q -nc $(STAGE3)
test -e stage3 || tar xvjpf stage3-*.tar.bz2 -C $(CHROOT)
if [ ! -e stage3 ] ; then \
wget -c -q -nc $(STAGE3); \
tar xvjpf stage3-*.tar.bz2 -C $(CHROOT); \
fi
cp make.conf $(CHROOT)/etc/make.conf
cp locale.gen $(CHROOT)/etc/locale.gen
mkdir -p $(CHROOT)/etc/portage