Man page - dpkg-buildtree(1)
Packages contains this manual
- deb822(5)
- dpkg-vendor(1)
- deb-symbols(5)
- deb-src-rules(5)
- dpkg-mergechangelogs(1)
- dsc(5)
- deb-src-control(5)
- dpkg-shlibdeps(1)
- dpkg-genbuildinfo(1)
- dpkg-scanpackages(1)
- deb-substvars(5)
- dpkg-parsechangelog(1)
- dpkg-architecture(1)
- deb-triggers(5)
- deb-changelog(5)
- deb-extra-override(5)
- deb-buildinfo(5)
- dpkg-buildpackage(1)
- dpkg-distaddfile(1)
- dpkg-gencontrol(1)
- dpkg-buildtree(1)
- deb-postrm(5)
- deb-version(7)
- deb-prerm(5)
- deb-preinst(5)
- deb-src-files(5)
- dpkg-buildapi(1)
- dpkg-checkbuilddeps(1)
- deb-src-symbols(5)
- deb-old(5)
- dpkg-source(1)
- deb-changes(5)
- deb-origin(5)
- dpkg-buildflags(1)
- deb-override(5)
- deb(5)
- dpkg-scansources(1)
- deb-control(5)
- deb-split(5)
- deb-shlibs(5)
- dpkg-build-api(7)
- deb-postinst(5)
- deb-conffiles(5)
- dpkg-genchanges(1)
- dpkg-gensymbols(1)
- dpkg-name(1)
- deb-md5sums(5)
apt-get install dpkg-dev
Available languages:
en pt nl sv deManual
dpkg-buildtree
NAMESYNOPSIS
DESCRIPTION
COMMANDS
ENVIRONMENT
FILES
Cleaned files
EXAMPLES
Usage in debian/rules
NAME
dpkg-buildtree - helper for build tree operations during package builds
SYNOPSIS
dpkg-buildtree [ option ...] [ command ]
DESCRIPTION
dpkg-buildtree is a tool to perform common operations on the build tree for a source package.
This program was introduced in dpkg 1.22.3.
COMMANDS
clean
Removes all artifacts generated during a build by the various dpkg tools, and pathnames used or controlled by dpkg tools that are safe to clean. These files are used to track state between package build runs, and are in many cases internal implementation details the packager should not be concerned about, or are staging directories containing build artifacts.
is-rootless
Checks whether the build tree can be built with no root privileges (since dpkg 1.22.12).
This command can be used safely even with versions where the command was not yet available as the default will then be the historic one where root was required.
--help
Show the usage message and exit.
--version
Show the version and exit.
ENVIRONMENT
DPKG_COLORS
Sets the color mode. The currently accepted values are: auto (default), always and never .
DPKG_NLS
If set, it will be used to decide whether to activate Native Language Support, also known as internationalization (or i18n) support. The accepted values are: 0 and 1 (default).
FILES
Cleaned files
debian/files
debian/files.new
Files generated by dpkg-distaddfile (1).
debian/substvars
debian/substvars.new
Files generated by dpkg-shlibdeps (1).
debian/tmp
Staging directory containing the contents to be used when creating a package. Both dpkg-gencontrol (1) and dpkg-gensymbols (1) generate files within.
EXAMPLES
Usage in debian/rules
You can call dpkg-buildtree clean from the debian/rules clean target, after having performed other necessary cleanups.
For example for an autoconf-like build system:
clean:
[ ! -f Makefile ] || $(MAKE) distclean
dpkg-buildtree clean