dpkg-buildtree
helper for build tree operations during package builds
- Provided by: dpkg-dev (Version: 1.23.7ubuntu2)
- Source: dpkg
- Report a bug
helper for build tree operations during package builds
dpkg-buildtree [option...] [command]
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.
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.
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