add gobuild.
use gobuild-generated Makefile for math and os.
other makefile tweaks.
move math/main.go to test/math.go
R=r
OCL=15529
CL=15537
diff --git a/src/clean.bash b/src/clean.bash
index cba2129..36b0c99 100755
--- a/src/clean.bash
+++ b/src/clean.bash
@@ -3,16 +3,15 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-for i in lib9 libbio libmach_amd64 libregexp syscall
+for i in lib9 libbio libmach_amd64 libregexp syscall cmd runtime lib
do
cd $i
- make clean
- cd ..
-done
-
-for i in cmd runtime lib
-do
- cd $i
- bash clean.bash
+ case $i in
+ cmd | lib)
+ bash clean.bash
+ ;;
+ *)
+ make clean
+ esac
cd ..
done