goinstall: handle $(GOOS) and $(GOARCH) in filenames
This enables goinstall to handle .go and .c files (for cgo)
which are named after the following patterns:
name_$(GOOS).*
name_$(GOARCH).*
name_$(GOOS)_$(GOARCH).*
Files with those names are only included if the $(GOOS) and
$(GOARCH) match the current system.
> I'd rather avoid more makefile hackery.
> Can we drop this and put
Yes, that works. My goal was to make Make.pkg and Make.cmd even
in those terms, so that they both have the same testing targets.
Either way, I've reverted. If you agree, I can submit a separate
CL later to do this.
Other items addressed too. PTAL
*** Submitted as b51ad23ee7fb ***
goinstall: handle $(GOOS) and $(GOARCH) in filenames
This enables goinstall to handle .go and .c files (for cgo)
which are named after the following patterns:
name_$(GOOS).*
name_$(GOARCH).*
name_$(GOOS)_$(GOARCH).*
Files with those names are only included if the $(GOOS) and
$(GOARCH) match the current system.
R=rsc
CC=golang-dev
http://codereview.appspot.com/4172055
Committer: Russ Cox <rsc@golang.org>
Issue 4172055: code review 4172055: goinstall: handle $(GOOS) and $(GOARCH) in filenames
(Closed)
Created 14 years, 1 month ago by niemeyer
Modified 14 years ago
Reviewers:
Base URL:
Comments: 6