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 -f $GOROOT/lib/*.[6a]
for i in lib9 libbio libmach libregexp cmd pkg
do
for i in lib9 libbio libcgo libmach libregexp cmd pkg \
../misc/cgo/gmp ../misc/cgo/stdio \
../usr/r/rpc ../usr/dsymonds/iterable \
../usr/austin/eval ../usr/austin/ogle ../test/bench
do(
cd $i
case $i in
cmd)
if test -f clean.bash; then
bash clean.bash
;;
*)
else
make clean
esac
cd ..
done
fi
)done

View file

@ -34,7 +34,7 @@ y.tab.c: y.tab.h
test -f y.tab.c && touch y.tab.c
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)
cp $(TARG) $(GOBIN)/$(TARG)

View file

@ -34,7 +34,7 @@ $(TARG): $(OFILES) $(LIB)
$(OFILES): $(HFILES)
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)
cp $(TARG) $(GOBIN)/$(TARG)

View file

@ -32,7 +32,7 @@ $(TARG): $(OFILES) $(LIB)
$(OFILES): $(HFILES)
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)
cp $(TARG) $(GOBIN)/$(TARG)

View file

@ -34,7 +34,7 @@ enam.c: 5.out.h
sh mkenam
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)
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
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)
cp $(TARG) $(GOBIN)/$(TARG)

View file

@ -35,7 +35,7 @@ $(TARG): $(OFILES) $(LIB)
$(OFILES): $(HFILES)
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)
cp $(TARG) $(GOBIN)/$(TARG)

View file

@ -33,7 +33,7 @@ $(TARG): $(OFILES) $(LIB)
$(OFILES): $(HFILES)
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)
cp $(TARG) $(GOBIN)/$(TARG)

View file

@ -37,7 +37,7 @@ enam.c: 6.out.h
sh mkenam
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)
cp $(TARG) $(GOBIN)/$(TARG)

View file

@ -11,12 +11,10 @@ HFILES=\
a.h\
y.tab.h\
../8l/8.out.h\
compat.h\
OFILES=\
y.tab.$O\
lex.$O\
compat.$O\
../8l/enam.$O\
YFILES=\
@ -36,7 +34,7 @@ y.tab.c: y.tab.h
test -f y.tab.c && touch y.tab.c
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)
cp $(TARG) $(GOBIN)/$(TARG)

View file

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

View file

@ -34,7 +34,7 @@ $(TARG): $(OFILES) $(LIB)
$(OFILES): $(HFILES)
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)
cp $(TARG) $(GOBIN)/$(TARG)

View file

@ -36,7 +36,7 @@ enam.c: 8.out.h
sh mkenam
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)
cp $(TARG) $(GOBIN)/$(TARG)

View file

@ -16,7 +16,7 @@ $(TARG): $(OFILES)
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lmach -lbio -l9
clean:
rm -f $(OFILES) $(TARG)
rm -f *.$O $(TARG)
install: $(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
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)

View file

@ -3,7 +3,7 @@
# Use of this source code is governed by a BSD-style
# 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
cd $i
make clean

View file

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

View file

@ -64,6 +64,6 @@ opnames.h: mkopnames go.h
./mkopnames go.h >opnames.h
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)

View file

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

View file

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

View file

@ -20,7 +20,7 @@ $(TARG): $(OFILES)
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lmach -lbio -l9
clean:
rm -f $(OFILES) $(TARG)
rm -f *.$O $(TARG)
install: install-$(shell uname | tr A-Z a-z)
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\
vars.go\
CLEANFILES+=ogle
include $(GOROOT)/src/Make.pkg
main.$O: main.go package