Index: en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml =================================================================== --- en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml +++ en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml @@ -1168,17 +1168,14 @@ GO_PKGNAME - The name of the Go package. - When building in GOPATH mode, this is the directory that + The name of the Go package + when building in GOPATH mode. This is the directory that will be created in ${GOPATH}/src and - seen by the go. When building in - modules-aware mode, no GOPATH directories will be created - and GO_PKGNAME value will be only used - as a default for GO_TARGET. If not set - explicitly and GH_SUBDIR is present, - GO_PKGNAME value will be inferred from - ${GH_SUBDIR}, otherwise it will be set - to ${PORTNAME}. + seen by the go. If not set + explicitly and GH_SUBDIR or + GL_SUBDIR is present, + GO_PKGNAME will be inferred from it. + Not needed when building in modules-aware mode. @@ -1186,8 +1183,17 @@ GO_TARGET - The name of the packages to build. The default - value is ${GO_PKGNAME}. + The name(s) of package(s) to build. The default + value is ${GO_PKGNAME}. + GO_TARGET can also be a tuple in the + form package:path where path can be + either a simple filename or a full path starting with + ${PREFIX}. Specifying a full path like + ${PREFIX}/sbin/binary will install the + resulting binary as + ${PREFIX}/sbin/binary. Using just a + simple filename is a shortcut to installing as + ${PREFIX}/bin/filename.