1
0
mirror of https://github.com/golang/go synced 2024-11-25 08:07:57 -07:00

goinstall: honour -install=false flag when -make=true

R=rsc
CC=golang-dev
https://golang.org/cl/5448124
This commit is contained in:
Andrew Gerrand 2011-12-07 09:41:20 +11:00
parent b219e8cbcf
commit 2c7a84a95b

View File

@ -29,7 +29,12 @@ func domake(dir, pkg string, tree *build.Tree, isCmd bool) (err error) {
} else if *clean { } else if *clean {
cmd = append(cmd, "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...) return run(dir, makefile, cmd...)
} }