]> git.donarmstrong.com Git - debhelper.git/blob - dh_clean.1
5d9180a962372058359864f5c61664dc4795ef21
[debhelper.git] / dh_clean.1
1 .TH DH_CLEAN 1
2 .SH NAME
3 dh_clean \- clean up package build directories
4 .SH SYNOPSIS
5 .B dh_clean
6 .I "[-v] [-a] [-i] [-k] [-ppackage] [-Ptmpdir] [file ...]"
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, etc.
12 .SH OPTIONS
13 .TP
14 .B \-v
15 Verbose mode; show all commands that modify the package build directory.
16 .TP
17 .B \-a
18 Clean up the package build directory for all architecture dependent packages.
19 .TP
20 .B \-i
21 Clean up the package build directory for all architecture independent packages.
22 .TP
23 .B \-ppackage
24 Clean up the package build directory for the package named "package".
25 .TP
26 .B \-Ptmpdir
27 Use "tmpdir" for package build directory.
28 .TP
29 .B \-k
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
36 was built.
37 .TP
38 .B file ...
39 Delete these files too.
40 .SH NOTES
41 The
42 .B \-a
43 .B \-i
44 and
45 .B \-p
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.
48 .SH ENVIRONMENT
49 .TP
50 .I DH_VERBOSE
51 Enables verbose mode
52 .SH "SEE ALSO"
53 .BR /usr/doc/debhelper/README
54 .SH BUGS
55 Filenames with spaces in them will not currently be deleted when specified
56 as parameters.
57 .SH AUTHOR
58 Joey Hess <joeyh@master.debian.org>