adding-packages-hooks.txt 842 B

12345678910111213141516171819202122232425262728293031
  1. // -*- mode:doc; -*-
  2. // vim: set syntax=asciidoc:
  3. [[hooks]]
  4. Hooks available in the various build steps
  5. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  6. The infrastructure allow packages to specify hooks. These define further
  7. actions to perform after existing steps. Most hooks aren't really useful for
  8. manual packages, since the +Makefile+ already has full control over the
  9. actions performed in each step of the package construction.
  10. The following hook targets are available:
  11. * +post-extract+
  12. * +post-patch+
  13. * +pre-configure+
  14. * +post-configure+
  15. * +pre-build+
  16. * +post-build+
  17. * +pre-install+
  18. * +post-install+
  19. For example, to make some scripts executable after extraction,
  20. add following to your +Makefile+:
  21. ---------------------
  22. post-extract:
  23. chmod a+x $(WRKBUILD)/build/make/*.sh
  24. chmod a+x $(WRKBUILD)/build/make/*.pl
  25. ---------------------