summaryrefslogtreecommitdiff
path: root/docs/adding-packages-hooks.txt
blob: 65786fbfcd81e2d995be40440d6c2801ca02da14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// -*- mode:doc; -*-
// vim: set syntax=asciidoc:

[[hooks]]
Hooks available in the various build steps
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The infrastructure allow packages to specify hooks.  These define further
actions to perform after existing steps.  Most hooks aren't really useful for
manual packages, since the +Makefile+ already has full control over the
actions performed in each step of the package construction.

The following hook targets are available:

* +post-extract+
* +post-patch+
* +pre-configure+
* +post-configure+
* +pre-build+
* +post-build+
* +pre-install+
* +post-install+

For example, to make some scripts executable after extraction,
add following to your +Makefile+:

---------------------
post-extract:
	chmod a+x $(WRKBUILD)/build/make/*.sh
	chmod a+x $(WRKBUILD)/build/make/*.pl
---------------------