diff options
Diffstat (limited to 'misc/cgo')
-rw-r--r-- | misc/cgo/stdio/Makefile | 4 | ||||
-rwxr-xr-x | misc/cgo/stdio/test.bash | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/misc/cgo/stdio/Makefile b/misc/cgo/stdio/Makefile index 7ff8c3007..2e3d46631 100644 --- a/misc/cgo/stdio/Makefile +++ b/misc/cgo/stdio/Makefile @@ -13,5 +13,5 @@ CLEANFILES+=hello fib chain run.out include ../../../src/Make.pkg %: install %.go - $(GC) $*.go - $(LD) -o $@ $*.$O + $(QUOTED_GOBIN)/$(GC) $*.go + $(QUOTED_GOBIN)/$(LD) -o $@ $*.$O diff --git a/misc/cgo/stdio/test.bash b/misc/cgo/stdio/test.bash index 82e3f7b45..b8b5f6911 100755 --- a/misc/cgo/stdio/test.bash +++ b/misc/cgo/stdio/test.bash @@ -4,7 +4,8 @@ # license that can be found in the LICENSE file. set -e -gomake hello fib chain +GOBIN="${GOBIN:-$HOME/bin}" +"$GOBIN"/gomake hello fib chain echo '*' hello >run.out ./hello >>run.out echo '*' fib >>run.out @@ -12,4 +13,4 @@ echo '*' fib >>run.out echo '*' chain >>run.out ./chain >>run.out diff run.out golden.out -gomake clean +"$GOBIN"/gomake clean |