1 .TH DH_CLEAN 1 "" "Debhelper Commands" "Debhelper Commands"
3 dh_clean \- clean up package build directories
6 .I "[debhelper options] [-k] [-d] [file ...] [-Xitem]"
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, and any detritus left
11 behind by other debhelper commands. It also removes common files that
12 should not appear in a debian diff:
13 #*# *~ DEADJOE *.orig *.rej *.SUMS TAGS core .deps/* *.P
19 for a list of options common to all debhelper commands.
22 Do not delete debian/files. When do you want to use this? Anytime you have a
23 debian/rules that has 2 binary targets that build different .deb packages;
24 for example, one target is binary-arch, and the other is binary-indep, or
25 one target builds the shared library, and the other the -dev package. If you
26 didn't use -k in these cases, then debian/files would be deleted in the
27 middle, and your changes file will only contain the last binary package that
31 Only clean the package build directories, do not clean up any other files at
34 .B \-Xitem, \--exclude=item
35 Exclude files that contain "item" anywhere in their filename from being
36 deleted, even if they would normally be deleted. You may use this option
37 multiple times to build up a list of things to exclude.
40 Delete these files too.
44 for a list of environment variables that affect all debhelper commands.
48 Joey Hess <joeyh@debian.org>