142 lines
3.4 KiB
HTML
142 lines
3.4 KiB
HTML
|
||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
<HTML><HEAD><TITLE>Man page of DH_CLEAN</TITLE>
|
||
</HEAD><BODY>
|
||
<H1>DH_CLEAN</H1>
|
||
Section: Debhelper (1)<BR>Updated: 2020-03-27<BR><A HREF="#index">Index</A>
|
||
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<A NAME="lbAB"> </A>
|
||
<H2>NAME</H2>
|
||
|
||
dh_clean - clean up package build directories
|
||
<A NAME="lbAC"> </A>
|
||
<H2>SYNOPSIS</H2>
|
||
|
||
|
||
|
||
<B>dh_clean</B> [<I>debhelper options</I>] [<B>-k</B>] [<B>-d</B>] [<B>-X</B><I>item</I>] [<I>path</I> ...]
|
||
<A NAME="lbAD"> </A>
|
||
<H2>DESCRIPTION</H2>
|
||
|
||
|
||
|
||
<B>dh_clean</B> 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 including <I>debian/files</I>, and any detritus left behind by other
|
||
debhelper commands. It also removes common files that should not appear in a
|
||
Debian diff:
|
||
<BR> #*# *~ <FONT SIZE="-1">DEADJOE</FONT> *.orig *.rej *.SUMS <FONT SIZE="-1">TAGS</FONT> .deps/* *.P *-stamp
|
||
<P>
|
||
|
||
It does not run ``make clean'' to clean up after the build process. Use
|
||
<B><A HREF="/cgi-bin/man/man2html?1+dh_auto_clean">dh_auto_clean</A></B>(1) to do things like that.
|
||
<P>
|
||
|
||
<B>dh_clean</B> should be the last debhelper command run in the
|
||
<B>clean</B> target in <I>debian/rules</I>.
|
||
<A NAME="lbAE"> </A>
|
||
<H2>FILES</H2>
|
||
|
||
|
||
|
||
<DL COMPACT>
|
||
<DT id="1"><I>debian/clean</I><DD>
|
||
|
||
|
||
Can list other paths to be removed.
|
||
|
||
|
||
<P>
|
||
|
||
|
||
Note that directories listed in this file <B>must</B> end with a trailing
|
||
slash. Any content in these directories will be removed as well.
|
||
|
||
|
||
<P>
|
||
|
||
|
||
Supports substitution variables in compat 13 and later as
|
||
documented in <B><A HREF="/cgi-bin/man/man2html?7+debhelper">debhelper</A></B>(7).
|
||
</DL>
|
||
<A NAME="lbAF"> </A>
|
||
<H2>OPTIONS</H2>
|
||
|
||
|
||
|
||
<DL COMPACT>
|
||
<DT id="2"><B>-k</B>, <B>--keep</B><DD>
|
||
|
||
|
||
This is deprecated, use <B><A HREF="/cgi-bin/man/man2html?1+dh_prep">dh_prep</A></B>(1) instead.
|
||
|
||
|
||
<P>
|
||
|
||
|
||
The option is removed in compat 12.
|
||
<DT id="3"><B>-d</B>, <B>--dirs-only</B><DD>
|
||
|
||
|
||
Only clean the package build directories, do not clean up any other files
|
||
at all.
|
||
<DT id="4"><B>-X</B><I>item</I> <B>--exclude=</B><I>item</I><DD>
|
||
|
||
|
||
Exclude files that contain <I>item</I> anywhere in their filename from being
|
||
deleted, even if they would normally be deleted. You may use this option
|
||
multiple times to build up a list of things to exclude.
|
||
<DT id="5"><I>path</I> ...<DD>
|
||
|
||
|
||
Delete these <I>path</I>s too.
|
||
|
||
|
||
<P>
|
||
|
||
|
||
Note that directories passed as arguments <B>must</B> end with a trailing
|
||
slash. Any content in these directories will be removed as well.
|
||
</DL>
|
||
<A NAME="lbAG"> </A>
|
||
<H2>SEE ALSO</H2>
|
||
|
||
|
||
|
||
<B><A HREF="/cgi-bin/man/man2html?7+debhelper">debhelper</A></B>(7)
|
||
<P>
|
||
|
||
This program is a part of debhelper.
|
||
<A NAME="lbAH"> </A>
|
||
<H2>AUTHOR</H2>
|
||
|
||
|
||
|
||
Joey Hess <<A HREF="mailto:joeyh@debian.org">joeyh@debian.org</A>>
|
||
<P>
|
||
|
||
<HR>
|
||
<A NAME="index"> </A><H2>Index</H2>
|
||
<DL>
|
||
<DT id="6"><A HREF="#lbAB">NAME</A><DD>
|
||
<DT id="7"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
||
<DT id="8"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
||
<DT id="9"><A HREF="#lbAE">FILES</A><DD>
|
||
<DT id="10"><A HREF="#lbAF">OPTIONS</A><DD>
|
||
<DT id="11"><A HREF="#lbAG">SEE ALSO</A><DD>
|
||
<DT id="12"><A HREF="#lbAH">AUTHOR</A><DD>
|
||
</DL>
|
||
<HR>
|
||
This document was created by
|
||
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
||
using the manual pages.<BR>
|
||
Time: 00:05:10 GMT, March 31, 2021
|
||
</BODY>
|
||
</HTML>
|