1 .TH DH_CLEAN 1 "" "Debhelper Commands" "Debhelper Commands"
3 dh_clean \- clean up package build directories
6 .I "[debhelper options] [-k] [-d] [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
11 files, any detritus left behind by other debhelper commands, etc.
17 for a list of options common to all debhelper commands.
20 Do not delete debian/files. When do you want to use this? Anytime you have a
21 debian/rules that has 2 binary targets that build different .deb packages;
22 for example, one target is binary-arch, and the other is binary-indep, or
23 one target builds the shared library, and the other the -dev package. If you
24 didn't use -k in these cases, then debian/files would be deleted in the
25 middle, and your changes file will only contain the last binary package that
29 Only clean the package build directories, do not clean up any other files at
33 Delete these files too.
37 for a list of environment variables that affect all debhelper commands.
41 Joey Hess <joeyh@debian.org>