1 # dpkg manual page - deb-src-rules(5)
3 # Copyright © 2016-2017 Guillem Jover <guillem@debian.org>
5 # This is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <https://www.gnu.org/licenses/>.
22 deb-src-rules - Debian source package rules file
30 This file contains the instructions necessary to build the binary packages
31 from the source package.
33 The I<debian/rules> file is an executable Makefile, with a shebang that
34 is usually set to "#!/usr/bin/make -f".
36 It must support the following make targets:
42 Clean up the source tree, by undoing any change done by any of the build
44 This target will be called with root privileges.
48 Build architecture independent files required to build any architecture
49 independent binary package.
50 If there are no architecture independent binary packages to generate,
51 the target must still exist but do nothing.
52 This target must not require root privileges.
56 Build architecture dependent files required to build any architecture
57 dependent binary package.
58 If there are no architecture dependent binary packages to generate,
59 the target must still exist but do nothing.
60 This target must not require root privileges.
64 Build architecture independent and dependent files, either by depending
65 (at least transitively) on B<build-indep> and/or B<build-arch> or
66 by inlining what those targets would do.
67 This target must not require root privileges.
71 Build architecture independent binary packages.
72 This target must depend (at least transitively) on either B<build-indep>
74 This target will be called with root privileges.
78 Build architecture dependent binary packages.
79 This target must depend (at least transitively) on either B<build-arch>
81 This target will be called with root privileges.
85 Build architecture independent and dependent binary packages, either by
86 depending (at least transitively) on B<binary-indep> and/or
87 B<binary-arch> or by inlining what those targets would do.
88 This target will be called with root privileges.
94 B<dpkg-architecture>(1),
96 B<dpkg-buildflags>(1),
97 B<dpkg-parsechangelog>(1),
99 B<dpkg-gencontrol>(1),
101 B<dpkg-distaddfile>(1).