package-make-target.txt 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 dependencies required to build the
  42. package
  43. | +graph-depends+ | Generate a dependency graph of the package, in the
  44. context of the current Buildroot configuration. See
  45. xref:graph-depends[this section] for more details about dependency
  46. graphs.
  47. | +dirclean+ | Remove the whole package build directory
  48. | +reinstall+ | Re-run the install commands
  49. | +rebuild+ | Re-run the compilation commands - this only makes
  50. sense when using the +OVERRIDE_SRCDIR+ feature or when you modified a file
  51. directly in the build directory
  52. | +reconfigure+ | Re-run the configure commands, then rebuild - this only
  53. makes sense when using the +OVERRIDE_SRCDIR+ feature or when you modified a
  54. file directly in the build directory
  55. |===================================================