summaryrefslogtreecommitdiff
path: root/src/cmd/clean.bash
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/clean.bash')
-rw-r--r--src/cmd/clean.bash7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cmd/clean.bash b/src/cmd/clean.bash
index 6349919a8..92d8cc5c9 100644
--- a/src/cmd/clean.bash
+++ b/src/cmd/clean.bash
@@ -3,9 +3,14 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
+gomake=gomake
+if [ "$1" == "--gomake" -a "$2" != "" ]; then
+ gomake=$2
+fi
+
for i in cc 6l 6a 6c 8l 8a 8c 8g 5l 5a 5c 5g gc 6g gopack nm cgo cov ebnflint godefs godoc gofmt goinstall gotest goyacc hgpatch prof
do
cd $i
- gomake clean
+ $gomake clean
cd ..
done