summaryrefslogtreecommitdiff
path: root/dh_clean.1
blob: 5d9180a962372058359864f5c61664dc4795ef21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.TH DH_CLEAN 1
.SH NAME
dh_clean \- clean up package build directories
.SH SYNOPSIS
.B dh_clean
.I "[-v] [-a] [-i] [-k] [-ppackage] [-Ptmpdir] [file ...]"
.SH "DESCRIPTION"
dh_clean is a debhelper program that is responsible for cleaning up after a
package is built. It removes the package build directories, and removes some
other files, such as debian/substvars, debian/files, DEADJOE, emacs backup 
files, etc.
.SH OPTIONS
.TP
.B \-v
Verbose mode; show all commands that modify the package build directory.
.TP
.B \-a
Clean up the package build directory for all architecture dependent packages.
.TP
.B \-i
Clean up the package build directory for all architecture independent packages.
.TP
.B \-ppackage
Clean up the package build directory for the package named "package".
.TP
.B \-Ptmpdir
Use "tmpdir" for package build directory.
.TP
.B \-k
Do not delete debian/files. When do you want to use this? Anytime you have a
debian/rules that has 2 binary targets that build different .deb packages;
for example, one target is binary-arch, and the other is binary-indep, or
one target builds the shared library, and the other the -dev package. If you
didn't use -k in these cases, then debian/files would be deleted in the
middle, and your changes file will only contain the last binary package that
was built.
.TP
.B file ...
Delete these files too.
.SH NOTES
The
.B \-a
.B \-i
and
.B \-p
arguments are cumulative. If none are specified, then all packages listed in
the control file will have their package build directories cleaned up.
.SH ENVIRONMENT
.TP
.I DH_VERBOSE
Enables verbose mode
.SH "SEE ALSO"
.BR /usr/doc/debhelper/README
.SH BUGS
Filenames with spaces in them will not currently be deleted when specified
as parameters.
.SH AUTHOR
Joey Hess <joeyh@master.debian.org>