src/cmd/goinstall/make.go | 22 +++++++++++----------- diff --git a/src/cmd/goinstall/make.go b/src/cmd/goinstall/make.go index c95156c0396b1efd569b408ccaf280e8fff8741d..93a648b2bf28e1c2a0a4001cac5af0058c1080c5 100644 --- a/src/cmd/goinstall/make.go +++ b/src/cmd/goinstall/make.go @@ -83,34 +83,34 @@ } // makedata is the data type for the makefileTemplate. type makedata struct { - pkg string // package import path - goFiles []string // list of non-cgo .go files - cgoFiles []string // list of cgo .go files - oFiles []string // list of ofiles for cgo + Pkg string // package import path + GoFiles []string // list of non-cgo .go files + CgoFiles []string // list of cgo .go files + OFiles []string // list of ofiles for cgo } var makefileTemplate = template.MustParse(` include $(GOROOT)/src/Make.inc -TARG={pkg} +TARG={Pkg} -{.section goFiles} +{.section GoFiles} GOFILES=\ -{.repeated section goFiles} +{.repeated section GoFiles} {@}\ {.end} {.end} -{.section cgoFiles} +{.section CgoFiles} CGOFILES=\ -{.repeated section cgoFiles} +{.repeated section CgoFiles} {@}\ {.end} {.end} -{.section oFiles} +{.section OFiles} CGO_OFILES=\ -{.repeated section oFiles} +{.repeated section OFiles} {@}\ {.end}