.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "deb-src-rules 5" .TH deb-src-rules 5 2024-03-10 1.22.6 "dpkg suite" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME deb\-src\-rules \- Debian source package rules file .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBdebian/rules\fR .SH DESCRIPTION .IX Header "DESCRIPTION" This file contains the instructions necessary to build the binary packages from the source package. .PP The \fIdebian/rules\fR file is an executable Makefile, with a shebang that is usually set to "#!/usr/bin/make \-f". .PP It must support the following make targets: .IP \fBclean\fR 4 .IX Item "clean" Clean up the source tree, by undoing any change done by any of the build and binary targets. This target will be called with root privileges. .IP \fBbuild-indep\fR 4 .IX Item "build-indep" Build architecture independent files required to build any architecture independent binary package. If there are no architecture independent binary packages to generate, the target must still exist but do nothing. This target must not require root privileges. .IP \fBbuild-arch\fR 4 .IX Item "build-arch" Build architecture dependent files required to build any architecture dependent binary package. If there are no architecture dependent binary packages to generate, the target must still exist but do nothing. This target must not require root privileges. .IP \fBbuild\fR 4 .IX Item "build" Build architecture independent and dependent files, either by depending (at least transitively) on \fBbuild-indep\fR and/or \fBbuild-arch\fR or by inlining what those targets would do. This target must not require root privileges. .IP \fBbinary-indep\fR 4 .IX Item "binary-indep" Build architecture independent binary packages. This target must depend (at least transitively) on either \fBbuild-indep\fR or \fBbuild\fR. This target will be called with root privileges. .IP \fBbinary-arch\fR 4 .IX Item "binary-arch" Build architecture dependent binary packages. This target must depend (at least transitively) on either \fBbuild-arch\fR or \fBbuild\fR. This target will be called with root privileges. .IP \fBbinary\fR 4 .IX Item "binary" Build architecture independent and dependent binary packages, either by depending (at least transitively) on \fBbinary-indep\fR and/or \&\fBbinary-arch\fR or by inlining what those targets would do. This target will be called with root privileges. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBdpkg\-architecture\fR\|(1), \&\fBdpkg\-vendor\fR\|(1), \&\fBdpkg\-buildflags\fR\|(1), \&\fBdpkg\-parsechangelog\fR\|(1), \&\fBdpkg\-shlibdeps\fR\|(1), \&\fBdpkg\-gencontrol\fR\|(1), \&\fBdpkg\-deb\fR\|(1), \&\fBdpkg\-distaddfile\fR\|(1).