make-tips.txt 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // -*- mode:doc; -*-
  2. // vim: set syntax=asciidoc:
  3. [[make-tips]]
  4. === 'make' tips
  5. This is a collection of tips that help you make the most of Buildroot.
  6. .Display all commands executed by make:
  7. --------------------
  8. $ make V=1 <target>
  9. --------------------
  10. .Display all available targets:
  11. --------------------
  12. $ make help
  13. --------------------
  14. Not all targets are always available,
  15. some settings in the +.config+ file may hide some targets:
  16. * +busybox-menuconfig+ only works when +busybox+ is enabled;
  17. * +linux-menuconfig+ and +linux-savedefconfig+ only work when
  18. +linux+ is enabled;
  19. * +uclibc-menuconfig+ is only available when the uClibc C library is
  20. selected in the internal toolchain backend;
  21. * +barebox-menuconfig+ and +barebox-savedefconfig+ only work when the
  22. +barebox+ bootloader is enabled.
  23. .Cleaning:
  24. Explicit cleaning is required when any of the architecture or toolchain
  25. configuration options are changed.
  26. To delete all build products (including build directories, host, staging
  27. and target trees, the images and the toolchain):
  28. --------------------
  29. $ make clean
  30. --------------------
  31. .Generating the manual:
  32. The present manual sources are located in the 'docs/manual' directory.
  33. To generate the manual:
  34. ---------------------------------
  35. $ make manual-clean
  36. $ make manual
  37. ---------------------------------
  38. The manual outputs will be generated in 'output/docs/manual'.
  39. .Notes
  40. - A few tools are required to build the documentation (see:
  41. xref:requirement-optional[]).
  42. .Resetting Buildroot for a new target:
  43. To delete all build products as well as the configuration:
  44. --------------------
  45. $ make distclean
  46. --------------------
  47. .Notes
  48. If +ccache+ is enabled, running +make clean+ or +distclean+ does
  49. not empty the compiler cache used by Buildroot. To delete it, refer
  50. to xref:ccache[].