1deb-src-rules(5)                  dpkg suite                  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
13       packages 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       clean
21           Clean up the source tree, by undoing any change done by any of the
22           build and binary targets.  This target will be called with root
23           privileges.
24
25       build-indep
26           Build architecture independent files required to build any
27           architecture independent binary package.  If there are no
28           architecture independent binary packages to generate, the target
29           must 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
34           architecture dependent binary package.  If there are no
35           architecture dependent binary packages to generate, the target must
36           still exist but do nothing.  This target must not require root
37           privileges.
38
39       build
40           Build architecture independent and dependent files, either by
41           depending (at least transitively) on build-indep and/or build-arch
42           or by inlining what those targets would do.  This target must not
43           require root privileges.
44
45       binary-indep
46           Build architecture independent binary packages.  This target must
47           depend (at least transitively) on either build-indep or build.
48           This target will be called with root privileges.
49
50       binary-arch
51           Build architecture dependent binary packages.  This target must
52           depend (at least transitively) on either build-arch or build.  This
53           target will be called with root privileges.
54
55       binary
56           Build architecture independent and dependent binary packages,
57           either by depending (at least transitively) on binary-indep and/or
58           binary-arch or by inlining what those targets would do.  This
59           target will be called with root privileges.
60

SEE ALSO

62       dpkg-architecture(1), dpkg-vendor(1), dpkg-buildflags(1), dpkg-
63       parsechangelog(1), dpkg-shlibdeps(1), dpkg-gencontrol(1), dpkg-deb(1),
64       dpkg-distaddfile(1).
65
66
67
681.21.8                            2022-05-25                  deb-src-rules(5)
Impressum