summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.links.mk
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-07-03 12:28:03 +0000
committerru <ru@FreeBSD.org>2002-07-03 12:28:03 +0000
commit734b0dc514183208313936a513580f7cb6a2f06c (patch)
tree659775b3ebfb05c024de4bafcee2d2a0cecad497 /share/mk/bsd.links.mk
parent352eaf673d5b6378cad6f454f71ecd2f6c659f9b (diff)
downloadFreeBSD-src-734b0dc514183208313936a513580f7cb6a2f06c.zip
FreeBSD-src-734b0dc514183208313936a513580f7cb6a2f06c.tar.gz
Try really hard to fix parallel installs. Add a bunch of .ORDER
directives to ensure that all realinstall sub-tasks are executed after beforeinstall, similarly ensure that all afterinstall sub- tasks are executed after realinstall. Demonstration: all: task1 task2 .ORDER: task1 task2 task2: task2_subtask .ORDER: task1 task2_subtask task1 task2 task2_subtask: @sleep `jot -r 1 0 1.0` @echo ${.TARGET} Without the second .ORDER directive, task2_subtask can be run in parallel with task1. Spotted by: Andrea Campi <andrea@webcom.it>
Diffstat (limited to 'share/mk/bsd.links.mk')
-rw-r--r--share/mk/bsd.links.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/mk/bsd.links.mk b/share/mk/bsd.links.mk
index a1e84ea..49f557a 100644
--- a/share/mk/bsd.links.mk
+++ b/share/mk/bsd.links.mk
@@ -5,6 +5,7 @@
.endif
afterinstall: _installlinks
+.ORDER: realinstall _installlinks
_installlinks:
.if defined(LINKS) && !empty(LINKS)
@set ${LINKS}; \
OpenPOWER on IntegriCloud