1// -*- mode:doc; -*- 2// vim: set syntax=asciidoc: 3 4[[pkg-build-steps]] 5 6==== Package-specific _make_ targets 7 8Running +make <package>+ builds and installs that particular package 9and its dependencies. 10 11For packages relying on the Buildroot infrastructure, there are 12numerous special make targets that can be called independently like 13this: 14 15------------ 16make <package>-<target> 17------------ 18 19The package build targets are (in the order they are executed): 20 21[width="90%",cols="^1,4",options="header"] 22|=================================================== 23| command/target | Description 24 25| +source+ | Fetch the source (download the tarball, clone 26the source repository, etc) 27 28| +depends+ | Build and install all dependencies required to 29build the package 30 31| +extract+ | Put the source in the package build directory 32(extract the tarball, copy the source, etc) 33 34| +patch+ | Apply the patches, if any 35 36| +configure+ | Run the configure commands, if any 37 38| +build+ | Run the compilation commands 39 40| +install-staging+ | 41*target package:* Run the installation of the package in the 42staging directory, if necessary 43 44| +install-target+ | 45*target package:* Run the installation of the package in the 46target directory, if necessary 47 48| +install+ | 49*target package:* Run the 2 previous installation commands 50 51*host package:* Run the installation of the package in the host 52directory 53 54|=================================================== 55 56Additionally, there are some other useful make targets: 57 58[width="90%",cols="^1,4",options="header"] 59|=================================================== 60| command/target | Description 61 62| +show-depends+ | Displays the first-order dependencies required to build the 63package 64 65| +show-recursive-depends+ | Recursively displays the dependencies 66 required to build the package 67 68| +show-rdepends+ | Displays the first-order reverse dependencies of 69 the package (i.e packages that directly depend on it) 70 71| +show-recursive-rdepends+ | Recursively displays the reverse 72 dependencies of the package (i.e the packages that depend on it, 73 directly or indirectly) 74 75| +graph-depends+ | Generate a dependency graph of the package, in the 76context of the current Buildroot configuration. See 77xref:graph-depends[this section] for more details about dependency 78graphs. 79 80| +graph-rdepends+ | Generate a graph of this package reverse 81 dependencies (i.e the packages that depend on it, directly or 82 indirectly) 83 84| +dirclean+ | Remove the whole package build directory 85 86| +reinstall+ | Re-run the install commands 87 88| +rebuild+ | Re-run the compilation commands - this only makes 89sense when using the +OVERRIDE_SRCDIR+ feature or when you modified a file 90directly in the build directory 91 92| +reconfigure+ | Re-run the configure commands, then rebuild - this only 93makes sense when using the +OVERRIDE_SRCDIR+ feature or when you modified a 94file directly in the build directory 95 96|=================================================== 97