Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

go-build(1) [bsd man page]

GO-BUILD(1)						      General Commands Manual						       GO-BUILD(1)

NAME
go - tool for managing Go source code SYNOPSIS
go build [-o output] [ build flags ] [ packages ] DESCRIPTION
Build compiles the packages named by the import paths, along with their dependencies, but it does not install the results. If the arguments are a list of .go files, build treats them as a list of source files specifying a single package. When the command line specifies a single main package, build writes the resulting executable to output. Otherwise build compiles the pack- ages but discards the results, serving only as a check that the packages can be built. The -o flag specifies the output file name. If not specified, the name is packagename.a (for a non-main package) or the base name of the first source file (for a main package). OPTIONS
The build flags are shared by the build, install, run, and test commands: -a force rebuilding of packages that are already up-to-date. -n print the commands but do not run them. -p n the number of builds that can be run in parallel. The default is the number of CPUs available. -v print the names of packages as they are compiled. -work print the name of the temporary work directory and do not delete it when exiting. -x print the commands. -compiler name name of compiler to use, as in runtime.Compiler (gccgo or gc) -gccgoflags 'arg list' arguments to pass on each gccgo compiler/linker invocation -gcflags 'arg list' arguments to pass on each 5g, 6g, or 8g compiler invocation -ldflags 'flag list' arguments to pass on each 5l, 6l, or 8l linker invocation -tags 'tag list' a list of build tags to consider satisfied during the build. See the documentation for the go/build package for more information about build tags. For more about specifying packages, see go-packages(7). For more about where packages and binaries are installed, see go-gopath(1). SEE ALSO
go-install(1), go-get(1), go-clean(1). AUTHOR
This manual page was written by Michael Stapelberg <stapelberg@debian.org>, for the Debian project (and may be used by others). 2012-05-13 GO-BUILD(1)

Check Out this Related Man Page

APT-BUILD(1)						      General Commands Manual						      APT-BUILD(1)

NAME
apt-build - Fetch sources and build packages optimized for your architecture. SYNOPSIS
apt-build [ options ] [ update ] [ upgrade ] [ world ] [ install pkg ] [ remove pkg ] [ info pkg ] DESCRIPTION
apt-build is an apt-get frontend to build and install architecture optimized packages. COMMANDS
update Retrieve new lists of packages upgrade Perform an upgrade world Rebuild your system install Build and install new packages source Download and extract source in the build directory info Info on a package which could be built remove Remove packages clean-build Erase built packages clean-sources Call debian/rules clean in source directories build-source Build source without installing them update-source Update sources and rebuild them if they are missing in the repository build-repository Rebuild the repository OPTIONS
--help Shows help --nowrapper Do not use the gcc wrapper --remove-builddep Remove build-dependencies installed by apt-build --no-source Don't download source --build-dir Specify build-dir --build-only Build package only --rebuild Rebuild a package --reinstall Build and install an already installed package --build-command <command> Use this command to build package --patch <file> Apply this patch before build (you can use this option one or several times) --patch-strip, -p <number> Prefix to strip on patch (0 = -p0, 1 = -p1 ...) --yes, -y Assume yes --purge Use purge instead of remove --noupdate Do not run 'apt-get update' before package installation --sources-list Specify sources.list file --apt-get Specify an alternative apt-get command --apt-cache Specify an alternative apt-cache command --force-yes Force yes --source Do not download source (sources are extracted already) --repository-dir Specify the repository directory --target-release Distribution to fetch packages from --config Specify an alternative configuration file --version, -v Show version BUGS
Many. AUTHOR
apt-build was written by Julien Danjou <acid@debian.org> with many contributors. 3rd Berkeley Distribution November 2003 APT-BUILD(1)
Man Page