build: allow clean.bash to work on fresh checkout

Must be invoked as ./clean.bash --gomake make
(or --gomake gmake, depending on the name of
GNU make).

R=niemeyer
CC=golang-dev
https://golang.org/cl/4023065
This commit is contained in:
Russ Cox 2011-02-04 14:33:08 -05:00
parent 4fa6d57f6e
commit 6c5e4e1854
3 changed files with 13 additions and 8 deletions

View file

@ -25,8 +25,8 @@ for i in lib9 libbio libmach cmd pkg \
do(
cd "$GOROOT"/src/$i || exit 1
if test -f clean.bash; then
bash clean.bash
bash clean.bash --gomake $MAKE
else
gomake clean
$MAKE clean
fi
)done