]> git.donarmstrong.com Git - debhelper.git/blob - dh_clean.1
r353: * Modified all postinst script fragments to only run when called with
[debhelper.git] / dh_clean.1
1 .TH DH_CLEAN 1 "" "Debhelper Commands" "Debhelper Commands"
2 .SH NAME
3 dh_clean \- clean up package build directories
4 .SH SYNOPSIS
5 .B dh_clean
6 .I "[debhelper options] [-k] [-d] [file ...] [-Xitem]"
7 .SH "DESCRIPTION"
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.
12 .SH OPTIONS
13 .TP
14 .B debhelper options
15 See
16 .BR debhelper (1)
17 for a list of options common to all debhelper commands.
18 .TP
19 .B \-k, \--keep
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
26 was built.
27 .TP
28 .B \-d, \--dirs-only
29 Only clean the package build directories, do not clean up any other files at
30 all.
31 .TP
32 .B \-Xitem, \--exclude=item
33 Exclude files that contain "item" anywhere in their filename from being
34 deleted, even if they would normally be deleted. You may use this option
35 multiple times to build up a list of things to exclude.
36 .TP
37 .B file ...
38 Delete these files too.
39 .SH ENVIRONMENT
40 See
41 .BR debhelper (1)
42 for a list of environment variables that affect all debhelper commands.
43 .SH "SEE ALSO"
44 .BR debhelper (1)
45 .SH AUTHOR
46 Joey Hess <joeyh@debian.org>