1
0
mirror of https://github.com/golang/go synced 2024-11-22 07:04:40 -07:00

clean more

R=r
DELTA=40  (9 added, 3 deleted, 28 changed)
OCL=35277
CL=35305
This commit is contained in:
Russ Cox 2009-10-03 10:38:03 -07:00
parent 133a158bd8
commit 11d3805579
23 changed files with 35 additions and 31 deletions

View File

@ -5,15 +5,15 @@
rm -rf $GOROOT/pkg/[0-9a-zA-Z_]* rm -rf $GOROOT/pkg/[0-9a-zA-Z_]*
rm -f $GOROOT/lib/*.[6a] rm -f $GOROOT/lib/*.[6a]
for i in lib9 libbio libmach libregexp cmd pkg for i in lib9 libbio libcgo libmach libregexp cmd pkg \
do ../misc/cgo/gmp ../misc/cgo/stdio \
../usr/r/rpc ../usr/dsymonds/iterable \
../usr/austin/eval ../usr/austin/ogle ../test/bench
do(
cd $i cd $i
case $i in if test -f clean.bash; then
cmd)
bash clean.bash bash clean.bash
;; else
*)
make clean make clean
esac fi
cd .. )done
done

View File

@ -34,7 +34,7 @@ y.tab.c: y.tab.h
test -f y.tab.c && touch y.tab.c test -f y.tab.c && touch y.tab.c
clean: clean:
rm -f $(OFILES) $(TARG) *.5 enam.c 5.out a.out y.tab.h y.tab.c rm -f *.$O $(TARG) *.5 enam.c 5.out a.out y.tab.h y.tab.c
install: $(TARG) install: $(TARG)
cp $(TARG) $(GOBIN)/$(TARG) cp $(TARG) $(GOBIN)/$(TARG)

View File

@ -34,7 +34,7 @@ $(TARG): $(OFILES) $(LIB)
$(OFILES): $(HFILES) $(OFILES): $(HFILES)
clean: clean:
rm -f $(OFILES) $(TARG) *.5 enam.c 5.out a.out rm -f *.$O $(TARG) *.5 enam.c 5.out a.out
install: $(TARG) install: $(TARG)
cp $(TARG) $(GOBIN)/$(TARG) cp $(TARG) $(GOBIN)/$(TARG)

View File

@ -32,7 +32,7 @@ $(TARG): $(OFILES) $(LIB)
$(OFILES): $(HFILES) $(OFILES): $(HFILES)
clean: clean:
rm -f $(OFILES) $(TARG) *.5 enam.c 5.out a.out rm -f *.o $(TARG) *.5 enam.c 5.out a.out
install: $(TARG) install: $(TARG)
cp $(TARG) $(GOBIN)/$(TARG) cp $(TARG) $(GOBIN)/$(TARG)

View File

@ -34,7 +34,7 @@ enam.c: 5.out.h
sh mkenam sh mkenam
clean: clean:
rm -f $(OFILES) $(TARG) *.5 enam.c 5.out a.out rm -f *.o $(TARG) *.5 enam.c 5.out a.out
install: $(TARG) install: $(TARG)
cp $(TARG) $(GOBIN)/$(TARG) cp $(TARG) $(GOBIN)/$(TARG)

View File

@ -34,7 +34,7 @@ y.tab.c: y.tab.h
test -f y.tab.c && touch y.tab.c test -f y.tab.c && touch y.tab.c
clean: clean:
rm -f $(OFILES) $(TARG) *.6 enam.c 6.out a.out y.tab.h y.tab.c rm -f *.$O $(TARG) *.6 enam.c 6.out a.out y.tab.h y.tab.c
install: $(TARG) install: $(TARG)
cp $(TARG) $(GOBIN)/$(TARG) cp $(TARG) $(GOBIN)/$(TARG)

View File

@ -35,7 +35,7 @@ $(TARG): $(OFILES) $(LIB)
$(OFILES): $(HFILES) $(OFILES): $(HFILES)
clean: clean:
rm -f $(OFILES) $(TARG) *.6 enam.c 6.out a.out rm -f *.$O $(TARG) *.6 enam.c 6.out a.out
install: $(TARG) install: $(TARG)
cp $(TARG) $(GOBIN)/$(TARG) cp $(TARG) $(GOBIN)/$(TARG)

View File

@ -33,7 +33,7 @@ $(TARG): $(OFILES) $(LIB)
$(OFILES): $(HFILES) $(OFILES): $(HFILES)
clean: clean:
rm -f $(OFILES) $(TARG) *.6 enam.c 6.out a.out rm -f $(TARG) enam.c 6.out a.out *.$O *.6
install: $(TARG) install: $(TARG)
cp $(TARG) $(GOBIN)/$(TARG) cp $(TARG) $(GOBIN)/$(TARG)

View File

@ -37,7 +37,7 @@ enam.c: 6.out.h
sh mkenam sh mkenam
clean: clean:
rm -f $(OFILES) $(TARG) *.6 enam.c 6.out a.out rm -f *.$O $(TARG) *.6 enam.c 6.out a.out
install: $(TARG) install: $(TARG)
cp $(TARG) $(GOBIN)/$(TARG) cp $(TARG) $(GOBIN)/$(TARG)

View File

@ -11,12 +11,10 @@ HFILES=\
a.h\ a.h\
y.tab.h\ y.tab.h\
../8l/8.out.h\ ../8l/8.out.h\
compat.h\
OFILES=\ OFILES=\
y.tab.$O\ y.tab.$O\
lex.$O\ lex.$O\
compat.$O\
../8l/enam.$O\ ../8l/enam.$O\
YFILES=\ YFILES=\
@ -36,7 +34,7 @@ y.tab.c: y.tab.h
test -f y.tab.c && touch y.tab.c test -f y.tab.c && touch y.tab.c
clean: clean:
rm -f $(OFILES) $(TARG) *.6 enam.c 6.out a.out y.tab.h y.tab.c rm -f *.$O $(TARG) *.6 enam.c 6.out a.out y.tab.h y.tab.c
install: $(TARG) install: $(TARG)
cp $(TARG) $(GOBIN)/$(TARG) cp $(TARG) $(GOBIN)/$(TARG)

View File

@ -37,7 +37,7 @@ $(TARG): $(OFILES) $(LIB)
$(OFILES): $(HFILES) $(OFILES): $(HFILES)
clean: clean:
rm -f $(OFILES) $(TARG) *.8 8.out a.out rm -f *.$O $(TARG) *.8 8.out a.out
install: $(TARG) install: $(TARG)
cp $(TARG) $(GOBIN)/$(TARG) cp $(TARG) $(GOBIN)/$(TARG)

View File

@ -34,7 +34,7 @@ $(TARG): $(OFILES) $(LIB)
$(OFILES): $(HFILES) $(OFILES): $(HFILES)
clean: clean:
rm -f $(OFILES) $(TARG) *.8 enam.c 8.out a.out rm -f *.$O $(TARG) *.8 enam.c 8.out a.out
install: $(TARG) install: $(TARG)
cp $(TARG) $(GOBIN)/$(TARG) cp $(TARG) $(GOBIN)/$(TARG)

View File

@ -36,7 +36,7 @@ enam.c: 8.out.h
sh mkenam sh mkenam
clean: clean:
rm -f $(OFILES) $(TARG) *.8 enam.c 8.out a.out rm -f *.$O $(TARG) *.8 enam.c 8.out a.out
install: $(TARG) install: $(TARG)
cp $(TARG) $(GOBIN)/$(TARG) cp $(TARG) $(GOBIN)/$(TARG)

View File

@ -16,7 +16,7 @@ $(TARG): $(OFILES)
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lmach -lbio -l9 $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lmach -lbio -l9
clean: clean:
rm -f $(OFILES) $(TARG) rm -f *.$O $(TARG)
install: $(TARG) install: $(TARG)
cp $(TARG) $(GOBIN)/$(TARG) cp $(TARG) $(GOBIN)/$(TARG)

View File

@ -42,6 +42,6 @@ y.tab.c: y.tab.h
test -f y.tab.c && touch y.tab.c test -f y.tab.c && touch y.tab.c
clean: clean:
rm -f $(OFILES) *.6 enam.c 6.out a.out y.tab.h y.tab.c $(LIB) rm -f *.$O *.6 enam.c 6.out a.out y.tab.h y.tab.c $(LIB)
install: $(LIB) install: $(LIB)

View File

@ -3,7 +3,7 @@
# Use of this source code is governed by a BSD-style # Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file. # license that can be found in the LICENSE file.
for i in cc 6l 6a 6c 8l 8a 8c 8g 5l 5a 5c 5g gc 6g ar db nm acid cov ebnflint godefs godoc gofmt prof gotest for i in cc 6l 6a 6c 8l 8a 8c 8g 5l 5a 5c 5g gc 6g ar db nm acid cgo cov ebnflint godefs godoc gofmt prof gotest
do do
cd $i cd $i
make clean make clean

View File

@ -20,7 +20,7 @@ $(TARG): $(OFILES)
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lmach -lregexp9 -lbio -l9 $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lmach -lregexp9 -lbio -l9
clean: clean:
rm -f $(OFILES) $(TARG) rm -f *.$O $(TARG)
install: install-$(shell uname | tr A-Z a-z) install: install-$(shell uname | tr A-Z a-z)
install-linux: install-default install-linux: install-default

View File

@ -64,6 +64,6 @@ opnames.h: mkopnames go.h
./mkopnames go.h >opnames.h ./mkopnames go.h >opnames.h
clean: clean:
rm -f $(OFILES) *.6 enam.c 6.out a.out y.tab.h y.tab.c $(LIB) mkbuiltin1 builtin.c _builtin.c rm -f *.[568o] enam.c [568].out a.out y.tab.h y.tab.c $(LIB) mkbuiltin1 builtin.c _builtin.c
install: $(LIB) install: $(LIB)

View File

@ -16,7 +16,7 @@ $(TARG): $(OFILES)
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9 $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
clean: clean:
rm -f $(OFILES) $(TARG) rm -f *.$O $(TARG)
install: $(TARG) install: $(TARG)
cp $(TARG) $(GOBIN)/$(TARG) cp $(TARG) $(GOBIN)/$(TARG)

View File

@ -16,7 +16,7 @@ $(TARG): $(OFILES)
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lmach -lbio -l9 $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lmach -lbio -l9
clean: clean:
rm -f $(OFILES) $(TARG) rm -f *.$O $(TARG)
install: $(TARG) install: $(TARG)
cp $(TARG) $(GOBIN)/$(TARG) cp $(TARG) $(GOBIN)/$(TARG)

View File

@ -20,7 +20,7 @@ $(TARG): $(OFILES)
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lmach -lbio -l9 $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lmach -lbio -l9
clean: clean:
rm -f $(OFILES) $(TARG) rm -f *.$O $(TARG)
install: install-$(shell uname | tr A-Z a-z) install: install-$(shell uname | tr A-Z a-z)
install-linux: install-default install-linux: install-default

4
test/bench/clean.bash Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
OS=568
rm -f [$OS].out *.[$OS]

View File

@ -18,6 +18,8 @@ GOFILES=\
process.go\ process.go\
vars.go\ vars.go\
CLEANFILES+=ogle
include $(GOROOT)/src/Make.pkg include $(GOROOT)/src/Make.pkg
main.$O: main.go package main.$O: main.go package