1DH_CLEAN(1) Debhelper DH_CLEAN(1)
2
3
4
6 dh_clean - clean up package build directories
7
9 dh_clean [debhelper options] [-k] [-d] [-Xitem] [path ...]
10
12 dh_clean is a debhelper program that is responsible for cleaning up
13 after a package is built. It removes the package build directories, and
14 removes some other files including debian/files, and any detritus left
15 behind by other debhelper commands. It also removes common files that
16 should not appear in a Debian diff:
17 #*# *~ DEADJOE *.orig *.rej *.SUMS TAGS .deps/* *.P *-stamp
18
19 It does not run "make clean" to clean up after the build process. Use
20 dh_auto_clean(1) to do things like that.
21
22 dh_clean should be the last debhelper command run in the clean target
23 in debian/rules.
24
26 debian/clean
27 Can list other paths to be removed.
28
29 Note that directories listed in this file must end with a trailing
30 slash. Any content in these directories will be removed as well.
31
33 -k, --keep
34 This is deprecated, use dh_prep(1) instead.
35
36 The option is removed in compat 12.
37
38 -d, --dirs-only
39 Only clean the package build directories, do not clean up any other
40 files at all.
41
42 -Xitem --exclude=item
43 Exclude files that contain item anywhere in their filename from
44 being deleted, even if they would normally be deleted. You may use
45 this option multiple times to build up a list of things to exclude.
46
47 path ...
48 Delete these paths too.
49
50 Note that directories passed as arguments must end with a trailing
51 slash. Any content in these directories will be removed as well.
52
54 debhelper(7)
55
56 This program is a part of debhelper.
57
59 Joey Hess <joeyh@debian.org>
60
61
62
6312.7.3 2020-01-28 DH_CLEAN(1)