package-make-target.txt 3.0 KB

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