man-pages/man1/dh_auto_install.1.html
2021-03-31 01:06:50 +01:00

107 lines
3.5 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of DH_AUTO_INSTALL</TITLE>
</HEAD><BODY>
<H1>DH_AUTO_INSTALL</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">&nbsp;</A>
<H2>NAME</H2>
dh_auto_install - automatically runs make install or similar
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>dh_auto_install</B> [<I>build system options</I>] [<I>debhelper options</I>] [<B>--</B> <I>params</I>]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>dh_auto_install</B> is a debhelper program that tries to automatically install
built files. It does so by running the appropriate command for the build
system it detects the package uses. For example, if there's a <I>Makefile</I> and
it contains a <B>install</B> target, then this is done by running <B>make</B> (or <B></B><FONT SIZE="-1"><B>MAKE</B></FONT><B></B>,
if the environment variable is set). If there is a <I>setup.py</I> or <I>Build.PL</I>,
it is used. Note that the Ant build system does not support installation,
so <B>dh_auto_install</B> will not install files built using Ant.
<P>
Unless <B>--destdir</B> option is specified, the files are installed into
debian/<I>package</I>/ if there is only one binary package. In the multiple binary
package case, the files are instead installed into <I>debian/tmp/</I>, and should be
moved from there to the appropriate package build directory using
<B><A HREF="/cgi-bin/man/man2html?1+dh_install">dh_install</A></B>(1).
<P>
<B></B><FONT SIZE="-1"><B>DESTDIR</B></FONT><B></B> is used to tell make where to install the files.
If the Makefile was generated by MakeMaker from a <I>Makefile.PL</I>, it will
automatically set <B>PREFIX=/usr</B> too, since such Makefiles need that.
<P>
This is intended to work for about 90% of packages. If it doesn't work, or
tries to use the wrong install target, you're encouraged to skip using
<B>dh_auto_install</B> at all, and just run make install manually.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
See &quot;<B></B><FONT SIZE="-1"><B>BUILD SYSTEM OPTIONS</B></FONT><B></B>&quot; in <B><A HREF="/cgi-bin/man/man2html?7+debhelper">debhelper</A></B>(7) for a list of common build
system selection and control options.
<DL COMPACT>
<DT id="1"><B>--destdir=</B><I>directory</I><DD>
Install files into the specified <I>directory</I>. If this option is not specified,
destination directory is determined automatically as described in the
&quot;<B></B><FONT SIZE="-1"><B>DESCRIPTION</B></FONT><B></B>&quot; section.
<DT id="2"><B>--</B> <I>params</I><DD>
Pass <I>params</I> to the program that is run, after the parameters that
<B>dh_auto_install</B> usually passes.
</DL>
<A NAME="lbAF">&nbsp;</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="lbAG">&nbsp;</A>
<H2>AUTHOR</H2>
Joey Hess &lt;<A HREF="mailto:joeyh@debian.org">joeyh@debian.org</A>&gt;
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="3"><A HREF="#lbAB">NAME</A><DD>
<DT id="4"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="5"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="6"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="7"><A HREF="#lbAF">SEE ALSO</A><DD>
<DT id="8"><A HREF="#lbAG">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>