Provided by: dh-golang_1.41_all
dh-golang -- debhelper build system class for Go packages
The dh-golang package provides a build system for debhelper which can be used in the following way: %: dh $@ --buildsystem=golang --with=golang
Here is a brief description of how the golang build system implements each debhelper build system stage: configure Creates a Go workspace (see https://golang.org/doc/code.html#Workspaces) in the build directory. Copies the source code into that workspace and symlinks all available libraries from /usr/share/gocode/src into the workspace because the go(1) tool requires write access to the workspace. See also "DH_GOLANG_INSTALL_EXTRA" and "DH_GOLANG_INSTALL_ALL". build Determines build targets (see also "DH_GOLANG_BUILDPKG" and "DH_GOLANG_EXCLUDES"), possibly calls "go generate" (see also "DH_GOLANG_GO_GENERATE"), then calls "go install". test Calls "go test -v" on all build targets. install Installs binaries and sources from the build directory into the Debian package destdir. See also "--no-source" and "--no-binaries". clean Removes the build directory.
dh_auto_install --no-source By default, all files within the src/ subdirectory of the build directory will be copied to /usr/share/gocode/src/ of the Debian package destdir. Specifying the "--no-source" option disables this behavior, which is useful if you are packaging a program (as opposed to a library). Example (in "debian/rules"): override_dh_auto_install: dh_auto_install -- --no-source --no-binaries By default, all files within the bin/ subdirectory of the build directory will be copied to /usr/bin/ of the Debian package destdir. Specifying the "--no-binaries" option disables this behavior. Example (in "debian/rules"): override_dh_auto_install: dh_auto_install -- --no-binaries Note: instead of using this option (which was added for symmetry with "--no-source"), consider not building unwanted binaries in the first place to save CPU time on our build daemons; see "DH_GOLANG_EXCLUDES".