aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses/kmod.mk
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2015-08-17 21:31:25 +0800
committermat <mat@FreeBSD.org>2015-08-17 21:31:25 +0800
commiteeed34950a53f69e83651e52b9f913d1588dc2fe (patch)
tree15b8ce30f8e7f1a99871e40ce43b8bd49254597d /Mk/Uses/kmod.mk
parenta048c020efc0bd78ac1b2afaa03313e655202200 (diff)
downloadfreebsd-ports-gnome-eeed34950a53f69e83651e52b9f913d1588dc2fe.tar.gz
freebsd-ports-gnome-eeed34950a53f69e83651e52b9f913d1588dc2fe.tar.zst
freebsd-ports-gnome-eeed34950a53f69e83651e52b9f913d1588dc2fe.zip
Rewrite the target ordering code.
The targets now have priority assigned to them, and, when the dependency ordering magic is done at the end of bsd.port.mk, they are sorted according to their priority. This allows USES to add targets easily and have them run whenever they want without touching bsd.port.mk. To add a target that runs just before post-configure run, do: _USES_configure+= 695:my-post-configure my-post-configure: do something To fine tune when the target is ran, look at the values in the *_SEQ variables at the end of bsd.port.mk, and the other USES. Allow ports Makefiles to override the priority of targets with the TARGET_ORDER_OVERRIDE variable. For example, to get post-install running earlier, (its default is 700) do: TARGET_ORDER_OVERRIDE= 650:post-install While there, add options target helpers for the do-* targets when they exist. Reviewed by: antoine, bapt Exp-run by: antoine Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3099
Diffstat (limited to 'Mk/Uses/kmod.mk')
-rw-r--r--Mk/Uses/kmod.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Uses/kmod.mk b/Mk/Uses/kmod.mk
index ce37c1171842..f9aa4be155fb 100644
--- a/Mk/Uses/kmod.mk
+++ b/Mk/Uses/kmod.mk
@@ -39,7 +39,7 @@ STRIP_CMD+= --strip-debug # do not strip kernel symbols
.if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_KMOD_POST_MK)
_INCLUDE_USES_KMOD_POST_MK= yes
-pre-install: ${STAGEDIR}${KMODDIR}
+_USES_install+= 290:${STAGEDIR}${KMODDIR}
${STAGEDIR}${KMODDIR}:
@${MKDIR} ${.TARGET}