1DH_CLEAN(1)                        Debhelper                       DH_CLEAN(1)
2
3
4

NAME

6       dh_clean - clean up package build directories
7

SYNOPSIS

9       dh_clean [debhelper options] [-k] [-d] [-Xitem] [path ...]
10

DESCRIPTION

12       dh_clean is a debhelper program that is responsible for cleaning up.
13       It should be the last step of the clean target and other debhelper
14       commands generally assume that dh_clean will clean up after them.
15
16       It removes the package build directories, and removes some other files
17       including debian/files, and any detritus left behind by other debhelper
18       commands. It also removes common files that should not appear in a
19       Debian diff:
20         #*# *~ DEADJOE *.orig *.rej *.SUMS TAGS .deps/* *.P *-stamp
21
22       It does not run "make clean" to clean up after the build process. Use
23       dh_auto_clean(1) to do things like that.
24

FILES

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
32           Supports substitution variables in compat 13 and later as
33           documented in debhelper(7).
34

OPTIONS

36       -k, --keep
37           This is deprecated, use dh_prep(1) instead.
38
39           The option is removed in compat 12.
40
41       -d, --dirs-only
42           Only clean the package build directories, do not clean up any other
43           files at all.
44
45       -Xitem --exclude=item
46           Exclude files that contain item anywhere in their filename from
47           being deleted, even if they would normally be deleted. You may use
48           this option multiple times to build up a list of things to exclude.
49
50       path ...
51           Delete these paths too.
52
53           Note that directories passed as arguments must end with a trailing
54           slash.  Any content in these directories will be removed as well.
55

SEE ALSO

57       debhelper(7)
58
59       This program is a part of debhelper.
60

AUTHOR

62       Joey Hess <joeyh@debian.org>
63
64
65
6613.11.6                           2023-09-02                       DH_CLEAN(1)
Impressum