# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-. $GOROOT/src/Make.$GOARCH
+. "$GOROOT"/src/Make.$GOARCH
if [ -z "$O" ]; then
echo 'missing $O - maybe no Make.$GOARCH?' 1>&2
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../src/Make.$(GOARCH)
TARG=gmp
CLEANFILES+=pi fib
-include $(GOROOT)/src/Make.pkg
+include ../../../src/Make.pkg
# Simple test programs
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../src/Make.$(GOARCH)
TARG=stdio
CGOFILES=\
CLEANFILES+=hello fib chain run.out
-include $(GOROOT)/src/Make.pkg
+include ../../../src/Make.pkg
%: install %.go
$(GC) $*.go
GOBIN=$(HOME)/bin
endif
+# ugly hack to deal with whitespaces in $GOBIN
+nullstring :=
+space := $(nullstring) # a space at the end
+QUOTED_GOBIN=$(subst $(space),\ ,$(GOBIN))
+
all: $(TARG)
$(TARG): _go_.$O $(OFILES)
_go_.$O: $(GOFILES)
$(GC) -o $@ $(GOFILES)
-install: $(GOBIN)/$(TARG)
+install: $(QUOTED_GOBIN)/$(TARG)
-$(GOBIN)/$(TARG): $(TARG)
- cp $(TARG) $@
+$(QUOTED_GOBIN)/$(TARG): $(TARG)
+ cp -f $(TARG) $(QUOTED_GOBIN)
clean:
rm -f *.[$(OS)] $(TARG) $(CLEANFILES)
nuke:
- rm -f *.[$(OS)] $(TARG) $(CLEANFILES) $(GOBIN)/$(TARG)
+ rm -f *.[$(OS)] $(TARG) $(CLEANFILES) $(QUOTED_GOBIN)/$(TARG)
CC=quietgcc
LD=quietgcc
-CFLAGS=-ggdb -I$(GOROOT)/include -O2 -fno-inline
+CFLAGS=-ggdb -I"$(GOROOT)"/include -O2 -fno-inline
O=o
YFLAGS=-d
# GNU Make syntax:
ifndef GOBIN
-GOBIN=$(HOME)/bin
+GOBIN="$(HOME)/bin"
endif
PWD=$(shell pwd)
%.$O: %.c
- $(CC) $(CFLAGS) -c $(PWD)/$*.c
+ $(CC) $(CFLAGS) -c "$(PWD)"/$*.c
elem=$(word $(words $(TARG_words)),$(TARG_words))
dir=$(patsubst %/$(elem),%,./$(TARG))
-pkgdir=$(GOROOT)/pkg/$(GOOS)_$(GOARCH)
+
+# ugly hack to deal with whitespaces in $GOROOT
+nullstring :=
+space := $(nullstring) # a space at the end
+QUOTED_GOROOT=$(subst $(space),\ ,$(GOROOT))
+
+pkgdir=$(QUOTED_GOROOT)/pkg/$(GOOS)_$(GOARCH)
INSTALLFILES=$(pkgdir)/$(TARG).a
install: $(INSTALLFILES)
$(pkgdir)/$(TARG).a: package
- @test -d $(GOROOT)/pkg && mkdir -p $(pkgdir)/$(dir)
- cp _obj/$(TARG).a $@
+ @test -d $(QUOTED_GOROOT)/pkg && mkdir -p $(pkgdir)/$(dir)
+ cp _obj/$(TARG).a "$@"
_go_.$O: $(GOFILES) $(PREREQ)
$(GC) -o $@ $(GOFILES)
# Compile x.cgo3.c with 6c; needs access to the runtime headers.
RUNTIME_CFLAGS_amd64=-D_64BIT
-RUNTIME_CFLAGS=-I$(GOROOT)/src/pkg/runtime $(RUNTIME_CFLAGS_$(GOARCH))
+RUNTIME_CFLAGS=-I"$(GOROOT)/src/pkg/runtime" $(RUNTIME_CFLAGS_$(GOARCH))
%.cgo3.$O: %.cgo3.c
$(CC) $(CFLAGS) $(RUNTIME_CFLAGS) $*.cgo3.c
gcc $(_CGO_CFLAGS_$(GOARCH)) -o $@ $*.cgo4.o $(CGO_LDFLAGS) $(_CGO_LDFLAGS_$(GOOS))
$(pkgdir)/$(dir)/$(elem)_%.so: $(elem)_%.so
- @test -d $(GOROOT)/pkg && mkdir -p $(pkgdir)/$(dir)
- cp $(elem)_$*.so $@
+ @test -d $(QUOTED_GOROOT/pkg && mkdir -p $(pkgdir)/$(dir)
+ cp $(elem)_$*.so "$@"
# Generic build rules.
# These come last so that the rules above can override them
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-rm -rf $GOROOT/pkg/${GOOS}_$GOARCH
-rm -f $GOROOT/lib/*.a
+rm -rf "$GOROOT"/pkg/${GOOS}_$GOARCH
+rm -f "$GOROOT"/lib/*.a
for i in lib9 libbio libcgo libmach cmd pkg \
../misc/cgo/gmp ../misc/cgo/stdio \
../test/bench
a.y\
$(TARG): $(OFILES)
- $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
+ $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) -lbio -l9
$(OFILES): $(HFILES)
rm -f *.$O $(TARG) *.5 enam.c 5.out a.out y.tab.h y.tab.c
install: $(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)
../cc/cc.a$O
$(TARG): $(OFILES) $(LIB)
- $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) $(LIB) -lbio -l9
+ $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) $(LIB) -lbio -l9
$(OFILES): $(HFILES)
rm -f *.$O $(TARG) *.5 enam.c 5.out a.out
install: $(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)
%.$O: ../cc/%.c
$(CC) $(CFLAGS) -c -I. -o $@ ../cc/$*.c
../gc/gc.a$O
$(TARG): $(OFILES) $(LIB)
- $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) $(LIB) -lbio -l9 -lm
+ $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) $(LIB) -lbio -l9 -lm
$(OFILES): $(HFILES)
rm -f *.o $(TARG) *.5 enam.c 5.out a.out
install: $(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)
../5l/5.out.h\
$(TARG): $(OFILES)
- $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
+ $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) -lbio -l9
$(OFILES): $(HFILES)
rm -f *.o $(TARG) *.5 enam.c 5.out a.out
install: $(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)
%.$O: ../ld/%.c
$(CC) $(CFLAGS) -c -I. ../ld/$*.c
a.y\
$(TARG): $(OFILES)
- $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
+ $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) -lbio -l9
$(OFILES): $(HFILES)
rm -f *.$O $(TARG) *.6 enam.c 6.out a.out y.tab.h y.tab.c
install: $(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)
../cc/cc.a$O
$(TARG): $(OFILES) $(LIB)
- $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) $(LIB) -lbio -l9
+ $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) $(LIB) -lbio -l9
$(OFILES): $(HFILES)
rm -f *.$O $(TARG) *.6 enam.c 6.out a.out
install: $(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)
%.$O: ../cc/%.c
$(CC) $(CFLAGS) -c -I. -o $@ ../cc/$*.c
../gc/gc.a$O
$(TARG): $(OFILES) $(LIB)
- $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) $(LIB) -lbio -l9 -lm
+ $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) $(LIB) -lbio -l9 -lm
$(OFILES): $(HFILES)
rm -f $(TARG) enam.c 6.out a.out *.$O *.6
install: $(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)
../ld/macho.h\
$(TARG): $(OFILES)
- $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
+ $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) -lbio -l9
$(OFILES): $(HFILES)
rm -f *.$O $(TARG) *.6 enam.c 6.out a.out
install: $(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)
%.$O: ../ld/%.c
$(CC) $(CFLAGS) -c -I. ../ld/$*.c
a.y\
$(TARG): $(OFILES)
- $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
+ $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) -lbio -l9
$(OFILES): $(HFILES)
rm -f *.$O $(TARG) *.6 enam.c 6.out a.out y.tab.h y.tab.c
install: $(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)
../cc/cc.a$O
$(TARG): $(OFILES) $(LIB)
- $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) $(LIB) -lm -lbio -l9
+ $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) $(LIB) -lm -lbio -l9
$(OFILES): $(HFILES)
rm -f *.$O $(TARG) *.8 8.out a.out
install: $(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)
%.$O: ../cc/%.c
$(CC) $(CFLAGS) -c -I. -o $@ ../cc/$*.c
../gc/gc.a$O
$(TARG): $(OFILES) $(LIB)
- $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) $(LIB) -lbio -l9 -lm
+ $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) $(LIB) -lbio -l9 -lm
$(OFILES): $(HFILES)
rm -f *.$O $(TARG) *.8 enam.c 8.out a.out
install: $(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)
$(TARG): $(OFILES)
- $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
+ $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) -lbio -l9
$(OFILES): $(HFILES)
rm -f *.$O $(TARG) *.8 enam.c 8.out a.out
install: $(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)
%.$O: ../ld/%.c
$(CC) $(CFLAGS) -c -I. ../ld/$*.c
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=cgo
GOFILES=\
out.go\
util.go\
-include $(GOROOT)/src/Make.cmd
+include ../../Make.cmd
tree.h\
$(TARG): $(OFILES)
- $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lmach -lbio -l9
+ $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) -lmach -lbio -l9
clean:
rm -f *.$O $(TARG)
@true
install-default: $(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)
$(OFILES): $(HFILES)
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=ebnflint
GOFILES=\
ebnflint.go\
-include $(GOROOT)/src/Make.cmd
+include ../../Make.cmd
test: $(TARG)
- $(TARG) -start="SourceFile" $(GOROOT)/doc/go_spec.html
+ $(TARG) -start="SourceFile" "$(GOROOT)"/doc/go_spec.html
set -e
-. $GOROOT/src/Make.$GOARCH
+. "$GOROOT"/src/Make.$GOARCH
if [ -z "$GC" ]; then
echo 'missing $GC - maybe no Make.$GOARCH?' 1>&2
exit 1
HFILES=a.h
$(TARG): $(OFILES)
- $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
+ $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) -lbio -l9
clean:
rm -f *.$O $(TARG)
install: $(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)
$(OFILES): $(HFILES)
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=godoc
GOFILES=\
snippet.go\
spec.go\
-include $(GOROOT)/src/Make.cmd
+include ../../Make.cmd
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=gofmt
GOFILES=\
gofmt.go\
rewrite.go\
-include $(GOROOT)/src/Make.cmd
+include ../../Make.cmd
test: $(TARG)
./test.sh
smoketest: $(TARG)
- ./test.sh $(GOROOT)/src/pkg/go/parser/parser.go
+ ./test.sh "$(GOROOT)"/src/pkg/go/parser/parser.go
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-. $GOROOT/src/Make.$GOARCH
+. "$GOROOT"/src/Make.$GOARCH
if [ -z "$O" ]; then
echo 'missing $O - maybe no Make.$GOARCH?' 1>&2
exit 1
# apply to one file
apply1() {
#echo $1 $2
- case `basename $F` in
+ case `basename "$F"` in
# the following files are skipped because they are test cases
# for syntax errors and thus won't parse in the first place:
func3.go | const2.go | \
bug014.go | bug050.go | bug068.go | bug083.go | bug088.go | \
bug106.go | bug121.go | bug125.go | bug133.go | bug160.go | \
bug163.go | bug166.go | bug169.go | bug217.go ) ;;
- * ) $1 $2; count $F;;
+ * ) "$1" "$2"; count "$F";;
esac
}
# apply to local files
applydot() {
for F in `find . -name "*.go" | grep -v "._"`; do
- apply1 $1 $F
+ apply1 "$1" $F
done
}
# apply to all .go files we can find
apply() {
- for F in `find $GOROOT -name "*.go" | grep -v "._"`; do
- apply1 $1 $F
+ for F in `find "$GOROOT" -name "*.go" | grep -v "._"`; do
+ apply1 "$1" $F
done
}
silent() {
cleanup
- $CMD $1 > /dev/null 2> $TMP1
+ $CMD "$1" > /dev/null 2> $TMP1
if [ $? != 0 ]; then
cat $TMP1
echo "Error (silent mode test): test.sh $1"
idempotent() {
cleanup
- $CMD $1 > $TMP1
+ $CMD "$1" > $TMP1
if [ $? != 0 ]; then
echo "Error (step 1 of idempotency test): test.sh $1"
exit 1
valid() {
cleanup
- $CMD $1 > $TMP1
+ $CMD "$1" > $TMP1
if [ $? != 0 ]; then
echo "Error (step 1 of validity test): test.sh $1"
exit 1
runtest() {
#echo "Testing silent mode"
cleanup
- $1 silent $2
+ "$1" silent "$2"
#echo "Testing idempotency"
cleanup
- $1 idempotent $2
+ "$1" idempotent "$2"
}
cleanup
applydot valid
else
- for F in $*; do
- runtest apply1 $F
+ for F in "$*"; do
+ runtest apply1 "$F"
done
fi
}
# run over all .go files
-runtests $*
+runtests "$*"
cleanup
# done
ar.$O\
$(TARG): $(OFILES)
- $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lmach -lbio -l9
+ $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) -lmach -lbio -l9
clean:
rm -f *.$O $(TARG)
install: $(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)
@true
install: $(TARG)
- ! test -f $(GOBIN)/$(TARG) || chmod u+w $(GOBIN)/$(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ ! test -f "$(GOBIN)"/$(TARG) || chmod u+w "$(GOBIN)"/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)
exit 2
fi
-. $GOROOT/src/Make.$GOARCH
+. "$GOROOT"/src/Make.$GOARCH
if [ -z "$O" ]; then
echo 'missing $O - maybe no Make.$GOARCH?' 1>&2
exit 2
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=goyacc
GOFILES=\
goyacc.go\
-include $(GOROOT)/src/Make.cmd
+include ../../Make.cmd
units: goyacc units.y
./goyacc units.y
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=hgpatch
GOFILES=\
main.go\
-include $(GOROOT)/src/Make.cmd
+include ../../Make.cmd
bash clean.bash
-. $GOROOT/src/Make.$GOARCH
+. "$GOROOT"/src/Make.$GOARCH
if [ -z "$O" ]; then
echo 'missing $O - maybe no Make.$GOARCH?' 1>&2
exit 1
nm.$O\
$(TARG): $(OFILES)
- $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lmach -lbio -l9
+ $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) -lmach -lbio -l9
clean:
rm -f *.$O $(TARG)
install: $(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)
$(OFILES): $(HFILES)
# fns.h\
$(TARG): $(OFILES)
- $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lmach -lbio -l9
+ $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) -lmach -lbio -l9
clean:
rm -f *.$O $(TARG)
@true
install-default: $(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)
$(OFILES): $(HFILES)
$(UTFOFILES)\
HFILES=\
- $(GOROOT)/include/u.h\
- $(GOROOT)/include/libc.h\
+ "$(GOROOT)"/include/u.h\
+ "$(GOROOT)"/include/libc.h\
install: $(LIB)
- cp $(LIB) $(GOROOT)/lib
+ cp $(LIB) "$(GOROOT)/lib"
$(LIB): $(OFILES)
ar rsc $(LIB) $(OFILES)
rm -f *.$O *.6 6.out $(LIB)
nuke: clean
- rm -f $(GOROOT)/lib/$(LIB)
+ rm -f "$(GOROOT)"/lib/$(LIB)
#XLIB=$PLAN9/lib/$LIB
bwrite.$O\
HFILES=\
- $(GOROOT)/include/bio.h\
+ ../../include/bio.h
install: $(LIB)
- cp $(LIB) $(GOROOT)/lib
+ cp $(LIB) ../../lib
$(LIB): $(OFILES)
ar rsc $(LIB) $(OFILES)
rm -f $(OFILES) *.6 6.out $(LIB)
nuke: clean
- rm -f $(GOROOT)/lib/$(LIB)
+ rm -f ../../lib/$(LIB)
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
+# ugly hack to deal with whitespaces in $GOROOT
+nullstring :=
+space := $(nullstring) # a space at the end
+QUOTED_GOROOT=$(subst $(space),\ ,$(GOROOT))
+
all: libcgo.so
-install: $(GOROOT)/pkg/$(GOOS)_$(GOARCH)/libcgo.so
+install: $(QUOTED_GOROOT)/pkg/$(GOOS)_$(GOARCH)/libcgo.so
OFILES=\
$(GOOS)_$(GOARCH).o\
libcgo.so: $(OFILES)
gcc $(CFLAGS_$(GOARCH)) -o libcgo.so $(OFILES) $(LDFLAGS_$(GOOS))
-$(GOROOT)/pkg/$(GOOS)_$(GOARCH)/libcgo.so: libcgo.so
- cp libcgo.so $@
+$(QUOTED_GOROOT)/pkg/$(GOOS)_$(GOARCH)/libcgo.so: libcgo.so
+ cp libcgo.so $(QUOTED_GOROOT)/pkg/$(GOOS)_$(GOARCH)
clean:
rm -f *.o *.so
8obj.$O\
$(shell uname | tr A-Z a-z).$O\
-HFILES=$(GOROOT)/include/mach.h elf.h macho.h obj.h
+HFILES=../../include/mach.h elf.h macho.h obj.h
install: $(LIB)
- cp $(LIB) $(GOROOT)/lib
+ cp $(LIB) ../../lib
$(LIB): $(OFILES)
ar rsc $(LIB) $(OFILES)
rm -f *.$O $(LIB)
nuke: clean
- rm -f $(GOROOT)/lib/$(LIB)
+ rm -f "$(GOROOT)"/lib/$(LIB)
GOBIN="${GOBIN:-$HOME/bin}"
export MAKEFLAGS=-j4
-if ! test -f $GOROOT/include/u.h
+if ! test -f "$GOROOT"/include/u.h
then
echo '$GOROOT is not set correctly or not exported' 1>&2
exit 1
GOBIN="${GOBIN:-$HOME/bin}"
export MAKEFLAGS=-j4
-if ! test -f $GOROOT/include/u.h
+if ! test -f "$GOROOT"/include/u.h
then
echo '$GOROOT is not set correctly or not exported' 1>&2
exit 1
fi
-if ! test -d $GOBIN
+if ! test -d "$GOBIN"
then
echo '$GOBIN is not a directory or does not exist' 1>&2
echo 'create it or set $GOBIN differently' 1>&2
exit 1
esac
-rm -f $GOBIN/quietgcc
+rm -f "$GOBIN"/quietgcc
CC=${CC:-gcc}
-sed -e "s|@CC@|$CC|" < quietgcc.bash > $GOBIN/quietgcc
-chmod +x $GOBIN/quietgcc
+sed -e "s|@CC@|$CC|" < quietgcc.bash > "$GOBIN"/quietgcc
+chmod +x "$GOBIN"/quietgcc
-rm -f $GOBIN/gomake
+rm -f "$GOBIN"/gomake
MAKE=make
if ! make --version 2>/dev/null | grep 'GNU Make' >/dev/null; then
MAKE=gmake
fi
-(echo '#!/bin/sh'; echo 'exec '$MAKE' "$@"') >$GOBIN/gomake
-chmod +x $GOBIN/gomake
+(echo '#!/bin/sh'; echo 'exec '$MAKE' "$@"') >"$GOBIN"/gomake
+chmod +x "$GOBIN"/gomake
if ! (cd lib9 && which quietgcc) >/dev/null 2>&1; then
echo "installed quietgcc as $GOBIN/quietgcc but 'which quietgcc' fails" 1>&2
test: test.dirs
nuke: nuke.dirs
- rm -rf $(GOROOT)/pkg/*
+ rm -rf "$(GOROOT)"/pkg/*
deps:
./deps.bash
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=archive/tar
GOFILES=\
reader.go\
writer.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=asn1
GOFILES=\
common.go\
marshal.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=big
GOFILES=\
OFILES=\
arith_$(GOARCH).$O\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=bignum
GOFILES=\
integer.go\
rational.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=bufio
GOFILES=\
bufio.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=bytes
GOFILES=\
buffer.go\
bytes.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=compress/flate
GOFILES=\
token.go\
util.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=compress/gzip
GOFILES=\
gunzip.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=compress/zlib
GOFILES=\
reader.go\
writer.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=container/heap
GOFILES=\
heap.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=container/list
GOFILES=\
list.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=container/ring
GOFILES=\
ring.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=container/vector
GOFILES=\
stringvector.go\
vector.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=crypto/aes
GOFILES=\
cipher.go\
const.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=crypto/block
GOFILES=\
ofb.go\
xor.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=crypto/hmac
GOFILES=\
hmac.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=crypto/md5
GOFILES=\
md5.go\
md5block.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=crypto/rc4
GOFILES=\
rc4.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=crypto/rsa
GOFILES=\
rsa.go\
pkcs1v15.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=crypto/sha1
GOFILES=\
sha1.go\
sha1block.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=crypto/subtle
GOFILES=\
constant_time.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=crypto/tls
GOFILES=\
ca_set.go\
tls.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=crypto/x509
GOFILES=\
x509.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=debug/dwarf
GOFILES=\
type.go\
unit.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=debug/elf
GOFILES=\
elf.go\
file.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=debug/gosym
GOFILES=\
pclntab.go\
symtab.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=debug/macho
GOFILES=\
macho.go\
file.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=debug/proc
GOFILES=\
proc_$(GOOS).go\
regs_$(GOOS)_$(GOARCH).go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=ebnf
GOFILES=\
ebnf.go\
parser.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=encoding/ascii85
GOFILES=\
ascii85.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=encoding/base64
GOFILES=\
base64.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=encoding/binary
GOFILES=\
binary.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=encoding/git85
GOFILES=\
git.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=encoding/hex
GOFILES=\
hex.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=encoding/pem
GOFILES=\
pem.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=exec
GOFILES=\
exec.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=exp/datafmt
GOFILES=\
datafmt.go\
parser.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=exp/draw
GOFILES=\
draw.go\
event.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=exp/eval
GOFILES=\
value.go\
world.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
make
6g main.go && 6l main.6
(
-for i in $(egrep -l '// \$G (\$D/)?\$F\.go \&\& \$L \$F\.\$A && \./\$A\.out' $GOROOT/test/*.go $GOROOT/test/*/*.go)
+for i in $(egrep -l '// \$G (\$D/)?\$F\.go \&\& \$L \$F\.\$A && \./\$A\.out' "$GOROOT"/test/*.go "$GOROOT"/test/*/*.go)
do
if grep '^import' $i >/dev/null 2>&1
then
true
else
- if $GOROOT/usr/austin/eval/6.out -f $i >/tmp/out 2>&1 && ! test -s /tmp/out
+ if "$GOROOT"/usr/austin/eval/6.out -f $i >/tmp/out 2>&1 && ! test -s /tmp/out
then
echo PASS $i
else
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=exp/exception
GOFILES=\
exception.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=exp/iterable
GOFILES=\
array.go\
iterable.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../../Make.$(GOARCH)
TARG=exp/nacl/av
GOFILES=\
event.go\
image.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../../Make.$(GOARCH)
TARG=exp/nacl/srpc
GOFILES=\
msg.go\
server.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=exp/ogle
GOFILES=\
CLEANFILES+=ogle
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
main.$O: main.go package
$(GC) -I_obj $<
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=expvar
GOFILES=\
expvar.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=flag
GOFILES=\
flag.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=fmt
GOFILES=\
format.go\
print.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=go/ast
GOFILES=\
filter.go\
walk.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=go/doc
GOFILES=\
comment.go\
doc.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=go/parser
GOFILES=\
interface.go\
parser.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=go/printer
GOFILES=\
printer.go\
nodes.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=go/scanner
GOFILES=\
errors.go\
scanner.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=go/token
GOFILES=\
token.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=gob
GOFILES=\
encoder.go\
type.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=hash
GOFILES=\
hash.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=hash/adler32
GOFILES=\
adler32.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=hash/crc32
GOFILES=\
crc32.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=http
GOFILES=\
status.go\
url.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=image
GOFILES=\
color.go\
image.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=image/png
GOFILES=\
reader.go\
writer.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=io
GOFILES=\
pipe.go\
utils.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=json
GOFILES=\
parse.go\
struct.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=log
GOFILES=\
log.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=malloc
GOFILES=\
malloc.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=math
$(filter-out $(NOGOFILES),$(ALLGOFILES))\
$(subst .go,_decl.go,$(NOGOFILES))\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=net
GOFILES=\
udpsock.go\
unixsock.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=once
GOFILES=\
once.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=os
GOFILES=\
time.go\
types.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=patch
GOFILES=\
patch.go\
textdiff.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=path
GOFILES=\
path.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=rand
GOFILES=\
rand.go\
rng.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=reflect
GOFILES=\
type.go\
value.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=regexp
GOFILES=\
regexp.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=rpc
GOFILES=\
debug.go\
server.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=runtime
$(GOOS)/os.h\
$(GOOS)/$(GOARCH)/defs.h\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
clean: clean-local
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=sort
GOFILES=\
sort.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=strconv
GOFILES=\
itoa.go\
quote.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=strings
GOFILES=\
reader.go\
strings.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=sync
GOFILES=\
OFILES=\
asm_$(GOARCH).$O\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=syscall
GOFILES=\
OFILES=\
asm_$(GOOS)_$(GOARCH).$O\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=tabwriter
GOFILES=\
tabwriter.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=template
GOFILES=\
format.go\
template.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=testing
GOFILES=\
regexp.go\
testing.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=testing/iotest
GOFILES=\
reader.go\
writer.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=testing/quick
GOFILES=\
quick.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=testing/script
GOFILES=\
script.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=time
GOFILES=\
time.go\
zoneinfo.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=unicode
GOFILES=\
letter.go\
tables.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
maketables: maketables.go
$(GC) maketables.go
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=utf8
GOFILES=\
utf8.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../Make.$(GOARCH)
TARG=xml
read.go\
xml.go\
-include $(GOROOT)/src/Make.pkg
+include ../../Make.pkg
for i in prof cov
do
- sudo cp $GOROOT/src/cmd/$i/6$i /usr/local/bin/6$i
+ sudo cp "$GOROOT"/src/cmd/$i/6$i /usr/local/bin/6$i
sudo chgrp procmod /usr/local/bin/6$i
sudo chmod g+s /usr/local/bin/6$i
done
# license that can be found in the LICENSE file.
set -e
-. $GOROOT/src/Make.$GOARCH
+. "$GOROOT"/src/Make.$GOARCH
PATH=.:$PATH
mode=run