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
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)
$(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)
$(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)
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)
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)
$(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)
$(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)
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)
a.h\
y.tab.h\
../8l/8.out.h\
- compat.h\
OFILES=\
y.tab.$O\
lex.$O\
- compat.$O\
../8l/enam.$O\
YFILES=\
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)
$(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)
$(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)
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)
$(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)
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)
# 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
$(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
./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)
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
clean:
- rm -f $(OFILES) $(TARG)
+ rm -f *.$O $(TARG)
install: $(TARG)
cp $(TARG) $(GOBIN)/$(TARG)
$(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)
$(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
--- /dev/null
+#!/bin/sh
+
+OS=568
+rm -f [$OS].out *.[$OS]
process.go\
vars.go\
+CLEANFILES+=ogle
+
include $(GOROOT)/src/Make.pkg
main.$O: main.go package