| # Copyright 2009 The Go Authors. All rights reserved. |
| # 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 $GOBIN |
| space := $(nullstring) # a space at the end |
| QUOTED_HOME=$(subst $(space),\ ,$(HOME)) |
| QUOTED_GOBIN=$(subst $(space),\ ,$(GOBIN)) |
| # ugly hack to deal with whitespaces in $GOROOT |
| QUOTED_GOROOT:=$(subst $(space),\ ,$(GOROOT)) |
| rm -rf *.o *.a *.[$(OS)] [$(OS)].out $(CLEANFILES) |
| (cd $* && $(QUOTED_GOBIN)/gomake install) |