1deb-src-rules(5)                dpkg utilities                deb-src-rules(5)
2
3
4

NAME

6       deb-src-rules - Debian source package rules file
7

SYNOPSIS

9       debian/rules
10

DESCRIPTION

12       This file contains the instructions necessary to build the binary pack‐
13       ages from the source package.
14
15       The debian/rules file is an executable Makefile, with a shebang that is
16       usually set to "#!/usr/bin/make -f".
17
18       It must support the following make targets:
19
20
21       clean  Clean  up  the source tree, by undoing any change done by any of
22              the build and binary targets.  This target will be  called  with
23              root privileges.
24
25       build-indep
26              Build  architecture  independent  files  required  to  build any
27              architecture independent binary package.  If there are no archi‐
28              tecture independent binary packages to generate, the target must
29              still exist but do nothing.  This target must not  require  root
30              privileges.
31
32       build-arch
33              Build  architecture dependent files required to build any archi‐
34              tecture dependent binary package.  If there are no  architecture
35              dependent  binary  packages  to  generate, the target must still
36              exist but do nothing.  This target must not require root  privi‐
37              leges.
38
39       build  Build  architecture  independent  and dependent files, either by
40              depending  (at  least  transitively)   on   build-indep   and/or
41              build-arch  or  by  inlining  what those targets would do.  This
42              target must not require root privileges.
43
44       binary-indep
45              Build architecture independent  binary  packages.   This  target
46              must  depend  (at  least  transitively) on either build-indep or
47              build.  This target will be called with root privileges.
48
49       binary-arch
50              Build architecture dependent binary packages.  This target  must
51              depend  (at  least  transitively) on either build-arch or build.
52              This target will be called with root privileges.
53
54       binary Build architecture independent and  dependent  binary  packages,
55              either  by  depending  (at  least  transitively) on binary-indep
56              and/or binary-arch or by inlining what those targets  would  do.
57              This target will be called with root privileges.
58

SEE ALSO

60       dpkg-architecture(1), dpkg-vendor(1), dpkg-buildflags(1),
61       dpkg-parsechangelog(1), dpkg-shlibdeps(1), dpkg-gencontrol(1),
62       dpkg-deb(1), dpkg-distaddfile(1).
63
64
65
66Debian Project                    2017-09-05                  deb-src-rules(5)
Impressum