From 2c7a84a95bc10fe57b7b0699aee23f06f23076b5 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Wed, 7 Dec 2011 09:41:20 +1100 Subject: [PATCH] goinstall: honour -install=false flag when -make=true R=rsc CC=golang-dev https://golang.org/cl/5448124 --- src/cmd/goinstall/make.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/cmd/goinstall/make.go b/src/cmd/goinstall/make.go index 1a52ab2e72e..1e40d6ea37b 100644 --- a/src/cmd/goinstall/make.go +++ b/src/cmd/goinstall/make.go @@ -29,7 +29,12 @@ func domake(dir, pkg string, tree *build.Tree, isCmd bool) (err error) { } else if *clean { cmd = append(cmd, "clean") } - cmd = append(cmd, "install") + if *doInstall { + cmd = append(cmd, "install") + } + if len(cmd) <= 3 { // nothing to do + return nil + } return run(dir, makefile, cmd...) }