diff options
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/5a/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/5c/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/5g/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/5l/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/6a/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/6c/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/6g/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/6l/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/8a/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/8c/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/8g/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/8l/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/cgo/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/cov/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/ebnflint/Makefile | 6 | ||||
-rwxr-xr-x | src/cmd/gc/mkbuiltin | 2 | ||||
-rw-r--r-- | src/cmd/godefs/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/godoc/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/gofmt/Makefile | 6 | ||||
-rwxr-xr-x | src/cmd/gofmt/test.sh | 28 | ||||
-rw-r--r-- | src/cmd/gopack/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/gotest/Makefile | 4 | ||||
-rwxr-xr-x | src/cmd/gotest/gotest | 2 | ||||
-rw-r--r-- | src/cmd/goyacc/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/hgpatch/Makefile | 4 | ||||
-rwxr-xr-x | src/cmd/make.bash | 2 | ||||
-rw-r--r-- | src/cmd/nm/Makefile | 4 | ||||
-rw-r--r-- | src/cmd/prof/Makefile | 4 |
28 files changed, 67 insertions, 67 deletions
diff --git a/src/cmd/5a/Makefile b/src/cmd/5a/Makefile index 87c9d68cd..f01b017da 100644 --- a/src/cmd/5a/Makefile +++ b/src/cmd/5a/Makefile @@ -21,7 +21,7 @@ YFILES=\ a.y\ $(TARG): $(OFILES) - $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9 + $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) -lbio -l9 $(OFILES): $(HFILES) @@ -37,4 +37,4 @@ clean: 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) diff --git a/src/cmd/5c/Makefile b/src/cmd/5c/Makefile index be9f4c52a..b534206f3 100644 --- a/src/cmd/5c/Makefile +++ b/src/cmd/5c/Makefile @@ -29,7 +29,7 @@ LIB=\ ../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) @@ -37,7 +37,7 @@ clean: 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 diff --git a/src/cmd/5g/Makefile b/src/cmd/5g/Makefile index 05915a75e..123af19cd 100644 --- a/src/cmd/5g/Makefile +++ b/src/cmd/5g/Makefile @@ -27,7 +27,7 @@ LIB=\ ../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) @@ -35,4 +35,4 @@ clean: rm -f *.o $(TARG) *.5 enam.c 5.out a.out install: $(TARG) - cp $(TARG) $(GOBIN)/$(TARG) + cp $(TARG) "$(GOBIN)"/$(TARG) diff --git a/src/cmd/5l/Makefile b/src/cmd/5l/Makefile index b04211504..be866b87a 100644 --- a/src/cmd/5l/Makefile +++ b/src/cmd/5l/Makefile @@ -25,7 +25,7 @@ HFILES=\ ../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) @@ -36,7 +36,7 @@ clean: 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 diff --git a/src/cmd/6a/Makefile b/src/cmd/6a/Makefile index 0050921b5..21d824708 100644 --- a/src/cmd/6a/Makefile +++ b/src/cmd/6a/Makefile @@ -21,7 +21,7 @@ YFILES=\ a.y\ $(TARG): $(OFILES) - $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9 + $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) -lbio -l9 $(OFILES): $(HFILES) @@ -37,4 +37,4 @@ clean: 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) diff --git a/src/cmd/6c/Makefile b/src/cmd/6c/Makefile index 1cae39e1b..1bf1da9d3 100644 --- a/src/cmd/6c/Makefile +++ b/src/cmd/6c/Makefile @@ -30,7 +30,7 @@ LIB=\ ../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) @@ -38,7 +38,7 @@ clean: 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 diff --git a/src/cmd/6g/Makefile b/src/cmd/6g/Makefile index 6538c5528..a6d3eb762 100644 --- a/src/cmd/6g/Makefile +++ b/src/cmd/6g/Makefile @@ -28,7 +28,7 @@ LIB=\ ../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) @@ -36,4 +36,4 @@ clean: rm -f $(TARG) enam.c 6.out a.out *.$O *.6 install: $(TARG) - cp $(TARG) $(GOBIN)/$(TARG) + cp $(TARG) "$(GOBIN)"/$(TARG) diff --git a/src/cmd/6l/Makefile b/src/cmd/6l/Makefile index 3260c15a7..72bde4465 100644 --- a/src/cmd/6l/Makefile +++ b/src/cmd/6l/Makefile @@ -28,7 +28,7 @@ HFILES=\ ../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) @@ -39,7 +39,7 @@ clean: 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 diff --git a/src/cmd/8a/Makefile b/src/cmd/8a/Makefile index cb5897e08..beb575544 100644 --- a/src/cmd/8a/Makefile +++ b/src/cmd/8a/Makefile @@ -21,7 +21,7 @@ YFILES=\ a.y\ $(TARG): $(OFILES) - $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9 + $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) -lbio -l9 $(OFILES): $(HFILES) @@ -37,4 +37,4 @@ clean: 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) diff --git a/src/cmd/8c/Makefile b/src/cmd/8c/Makefile index 0f3973910..85ea3013b 100644 --- a/src/cmd/8c/Makefile +++ b/src/cmd/8c/Makefile @@ -32,7 +32,7 @@ LIB=\ ../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) @@ -40,7 +40,7 @@ clean: 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 diff --git a/src/cmd/8g/Makefile b/src/cmd/8g/Makefile index b2b9d91d6..ea1f178d2 100644 --- a/src/cmd/8g/Makefile +++ b/src/cmd/8g/Makefile @@ -29,7 +29,7 @@ LIB=\ ../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) @@ -37,4 +37,4 @@ clean: rm -f *.$O $(TARG) *.8 enam.c 8.out a.out install: $(TARG) - cp $(TARG) $(GOBIN)/$(TARG) + cp $(TARG) "$(GOBIN)"/$(TARG) diff --git a/src/cmd/8l/Makefile b/src/cmd/8l/Makefile index 088174877..52bd021c3 100644 --- a/src/cmd/8l/Makefile +++ b/src/cmd/8l/Makefile @@ -28,7 +28,7 @@ HFILES=\ $(TARG): $(OFILES) - $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9 + $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) -lbio -l9 $(OFILES): $(HFILES) @@ -39,7 +39,7 @@ clean: 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 diff --git a/src/cmd/cgo/Makefile b/src/cmd/cgo/Makefile index 2c62cbdf5..34ca3dd46 100644 --- a/src/cmd/cgo/Makefile +++ b/src/cmd/cgo/Makefile @@ -2,7 +2,7 @@ # 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=\ @@ -12,4 +12,4 @@ GOFILES=\ out.go\ util.go\ -include $(GOROOT)/src/Make.cmd +include ../../Make.cmd diff --git a/src/cmd/cov/Makefile b/src/cmd/cov/Makefile index 293ff399a..58cb2302c 100644 --- a/src/cmd/cov/Makefile +++ b/src/cmd/cov/Makefile @@ -17,7 +17,7 @@ HFILES=\ 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) @@ -31,6 +31,6 @@ install-darwin: $(TARG) @true install-default: $(TARG) - cp $(TARG) $(GOBIN)/$(TARG) + cp $(TARG) "$(GOBIN)"/$(TARG) $(OFILES): $(HFILES) diff --git a/src/cmd/ebnflint/Makefile b/src/cmd/ebnflint/Makefile index 6e42ba8d2..9c482446a 100644 --- a/src/cmd/ebnflint/Makefile +++ b/src/cmd/ebnflint/Makefile @@ -2,14 +2,14 @@ # 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 diff --git a/src/cmd/gc/mkbuiltin b/src/cmd/gc/mkbuiltin index 7fa717053..7fe11caf7 100755 --- a/src/cmd/gc/mkbuiltin +++ b/src/cmd/gc/mkbuiltin @@ -5,7 +5,7 @@ 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 diff --git a/src/cmd/godefs/Makefile b/src/cmd/godefs/Makefile index d3215c87d..49244f152 100644 --- a/src/cmd/godefs/Makefile +++ b/src/cmd/godefs/Makefile @@ -13,12 +13,12 @@ OFILES=\ 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) diff --git a/src/cmd/godoc/Makefile b/src/cmd/godoc/Makefile index f24b50966..dcd4e5b4e 100644 --- a/src/cmd/godoc/Makefile +++ b/src/cmd/godoc/Makefile @@ -2,7 +2,7 @@ # 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=\ @@ -12,4 +12,4 @@ GOFILES=\ snippet.go\ spec.go\ -include $(GOROOT)/src/Make.cmd +include ../../Make.cmd diff --git a/src/cmd/gofmt/Makefile b/src/cmd/gofmt/Makefile index dbc134f88..2294fd1db 100644 --- a/src/cmd/gofmt/Makefile +++ b/src/cmd/gofmt/Makefile @@ -2,18 +2,18 @@ # 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 diff --git a/src/cmd/gofmt/test.sh b/src/cmd/gofmt/test.sh index 8af8900e6..8912923f7 100755 --- a/src/cmd/gofmt/test.sh +++ b/src/cmd/gofmt/test.sh @@ -3,7 +3,7 @@ # 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 @@ -28,14 +28,14 @@ count() { # 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 } @@ -43,15 +43,15 @@ apply1() { # 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 } @@ -63,7 +63,7 @@ cleanup() { 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" @@ -74,7 +74,7 @@ silent() { idempotent() { cleanup - $CMD $1 > $TMP1 + $CMD "$1" > $TMP1 if [ $? != 0 ]; then echo "Error (step 1 of idempotency test): test.sh $1" exit 1 @@ -103,7 +103,7 @@ idempotent() { valid() { cleanup - $CMD $1 > $TMP1 + $CMD "$1" > $TMP1 if [ $? != 0 ]; then echo "Error (step 1 of validity test): test.sh $1" exit 1 @@ -120,11 +120,11 @@ valid() { runtest() { #echo "Testing silent mode" cleanup - $1 silent $2 + "$1" silent "$2" #echo "Testing idempotency" cleanup - $1 idempotent $2 + "$1" idempotent "$2" } @@ -137,15 +137,15 @@ runtests() { 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 diff --git a/src/cmd/gopack/Makefile b/src/cmd/gopack/Makefile index d95c9dd9d..c3c136f42 100644 --- a/src/cmd/gopack/Makefile +++ b/src/cmd/gopack/Makefile @@ -9,10 +9,10 @@ OFILES=\ 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) diff --git a/src/cmd/gotest/Makefile b/src/cmd/gotest/Makefile index 8a1f02386..b20b1daff 100644 --- a/src/cmd/gotest/Makefile +++ b/src/cmd/gotest/Makefile @@ -10,5 +10,5 @@ clean: @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) diff --git a/src/cmd/gotest/gotest b/src/cmd/gotest/gotest index 5f87b4791..75fd19217 100755 --- a/src/cmd/gotest/gotest +++ b/src/cmd/gotest/gotest @@ -21,7 +21,7 @@ if [ ! -f [Mm]akefile ]; then 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 diff --git a/src/cmd/goyacc/Makefile b/src/cmd/goyacc/Makefile index 80365b86e..77ac918bc 100644 --- a/src/cmd/goyacc/Makefile +++ b/src/cmd/goyacc/Makefile @@ -2,13 +2,13 @@ # 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 diff --git a/src/cmd/hgpatch/Makefile b/src/cmd/hgpatch/Makefile index 85f0722c8..f7d64bc12 100644 --- a/src/cmd/hgpatch/Makefile +++ b/src/cmd/hgpatch/Makefile @@ -2,10 +2,10 @@ # 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 diff --git a/src/cmd/make.bash b/src/cmd/make.bash index db31b7b5a..8e1546b53 100755 --- a/src/cmd/make.bash +++ b/src/cmd/make.bash @@ -7,7 +7,7 @@ set -e 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 diff --git a/src/cmd/nm/Makefile b/src/cmd/nm/Makefile index b2134e6b5..bb1545122 100644 --- a/src/cmd/nm/Makefile +++ b/src/cmd/nm/Makefile @@ -13,12 +13,12 @@ OFILES=\ 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) diff --git a/src/cmd/prof/Makefile b/src/cmd/prof/Makefile index f9012577e..b29ba4595 100644 --- a/src/cmd/prof/Makefile +++ b/src/cmd/prof/Makefile @@ -17,7 +17,7 @@ OFILES=\ # 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) @@ -31,6 +31,6 @@ install-darwin: $(TARG) @true install-default: $(TARG) - cp $(TARG) $(GOBIN)/$(TARG) + cp $(TARG) "$(GOBIN)"/$(TARG) $(OFILES): $(HFILES) |