diff options
author | ru <ru@FreeBSD.org> | 2002-07-03 12:28:03 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-07-03 12:28:03 +0000 |
commit | 734b0dc514183208313936a513580f7cb6a2f06c (patch) | |
tree | 659775b3ebfb05c024de4bafcee2d2a0cecad497 /share/mk/bsd.files.mk | |
parent | 352eaf673d5b6378cad6f454f71ecd2f6c659f9b (diff) | |
download | FreeBSD-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.files.mk')
-rw-r--r-- | share/mk/bsd.files.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/share/mk/bsd.files.mk b/share/mk/bsd.files.mk index daa8c88..b4159ac 100644 --- a/share/mk/bsd.files.mk +++ b/share/mk/bsd.files.mk @@ -66,3 +66,4 @@ _${group}INS: ${_${group}FILES} .endif !target(installfiles) realinstall: installfiles +.ORDER: beforeinstall installfiles |