2 // vim: set syntax=asciidoc:
6 ==== Package-specific _make_ targets
8 Running +make <package>+ builds and installs that particular package
11 For packages relying on the Buildroot infrastructure, there are
12 numerous special make targets that can be called independently like
16 make <package>-<target>
19 The package build targets are (in the order they are executed):
21 [width="90%",cols="^1,4",options="header"]
22 |===================================================
23 | command/target | Description
25 | +source+ | Fetch the source (download the tarball, clone
26 the source repository, etc)
28 | +depends+ | Build and install all dependencies required to
31 | +extract+ | Put the source in the package build directory
32 (extract the tarball, copy the source, etc)
34 | +patch+ | Apply the patches, if any
36 | +configure+ | Run the configure commands, if any
38 | +build+ | Run the compilation commands
41 *target package:* Run the installation of the package in the
42 staging directory, if necessary
45 *target package:* Run the installation of the package in the
46 target directory, if necessary
49 *target package:* Run the 2 previous installation commands
51 *host package:* Run the installation of the package in the host
54 |===================================================
56 Additionally, there are some other useful make targets:
58 [width="90%",cols="^1,4",options="header"]
59 |===================================================
60 | command/target | Description
62 | +show-depends+ | Displays the dependencies required to build the
65 | +graph-depends+ | Generate a dependency graph of the package, in the
66 context of the current Buildroot configuration. See
67 xref:graph-depends[this section] for more details about dependency
70 | +dirclean+ | Remove the whole package build directory
72 | +reinstall+ | Re-run the install commands
74 | +rebuild+ | Re-run the compilation commands - this only makes
75 sense when using the +OVERRIDE_SRCDIR+ feature or when you modified a file
76 directly in the build directory
78 | +reconfigure+ | Re-run the configure commands, then rebuild - this only
79 makes sense when using the +OVERRIDE_SRCDIR+ feature or when you modified a
80 file directly in the build directory
82 |===================================================