3 dh_clean \- clean up package build directories
6 .I "[-v] [-a] [-i] [-k] [-ppackage] [-Ptmpdir] [file ...]"
8 dh_clean is a debhelper program that is responsible for cleaning up after a
9 package is built. It removes the package build directories, and removes some
10 other files, such as debian/substvars, debian/files, DEADJOE, emacs backup
15 Verbose mode; show all commands that modify the package build directory.
18 Clean up the package build directory for all architecture dependent packages.
21 Clean up the package build directory for all architecture independent packages.
24 Clean up the package build directory for the package named "package".
27 Use "tmpdir" for package build directory.
30 Do not delete debian/files. When do you want to use this? Anytime you have a
31 debian/rules that has 2 binary targets that build different .deb packages;
32 for example, one target is binary-arch, and the other is binary-indep, or
33 one target builds the shared library, and the other the -dev package. If you
34 didn't use -k in these cases, then debian/files would be deleted in the
35 middle, and your changes file will only contain the last binary package that
39 Delete these files too.
46 arguments are cumulative. If none are specified, then all packages listed in
47 the control file will have their package build directories cleaned up.
53 .BR /usr/doc/debhelper/README
55 Filenames with spaces in them will not currently be deleted when specified
58 Joey Hess <joeyh@master.debian.org>