package-make-target.txt 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // -*- mode:doc; -*-
  2. // vim: set syntax=asciidoc:
  3. [[pkg-build-steps]]
  4. Package-specific _make_ targets
  5. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  6. Running +make <package>+ builds and installs that particular package
  7. and its dependencies.
  8. For packages relying on the Buildroot infrastructure, there are
  9. numerous special make targets that can be called independently like
  10. this:
  11. ------------
  12. make <package>-<target>
  13. ------------
  14. The package build targets are (in the order they are executed):
  15. [width="90%",cols="^1,4",options="header"]
  16. |===================================================
  17. | command/target | Description
  18. | +source+ | Fetch the source (download the tarball, clone
  19. the source repository, etc)
  20. | +depends+ | Build and install all dependencies required to
  21. build the package
  22. | +extract+ | Put the source in the package build directory
  23. (extract the tarball, copy the source, etc)
  24. | +patch+ | Apply the patches, if any
  25. | +configure+ | Run the configure commands, if any
  26. | +build+ | Run the compilation commands
  27. | +install-staging+ |
  28. *target package:* Run the installation of the package in the
  29. staging directory, if necessary
  30. | +install-target+ |
  31. *target package:* Run the installation of the package in the
  32. target directory, if necessary
  33. | +install+ |
  34. *target package:* Run the 2 previous installation commands
  35. *host package:* Run the installation of the package in the host
  36. directory
  37. |===================================================
  38. Additionally, there are some other useful make targets:
  39. [width="90%",cols="^1,4",options="header"]
  40. |===================================================
  41. | command/target | Description
  42. | +show-depends+ | Displays the dependencies required to build the
  43. package
  44. | +clean+ | Run the clean command of the package, also
  45. uninstall the package from both the target and the staging directory; _note
  46. that this is not implemented for all packages_
  47. | +dirclean+ | Remove the whole package build directory
  48. | +rebuild+ | Re-run the compilation commands - this only makes
  49. sense when using the +OVERRIDE_SRCDIR+ feature or when you modified a file
  50. directly in the build directory
  51. | +reconfigure+ | Re-run the configure commands, then rebuild - this only
  52. makes sense when using the +OVERRIDE_SRCDIR+ feature or when you modified a
  53. file directly in the build directory
  54. |===================================================