Alexey, Alexey Neyman <[EMAIL PROTECTED]> writes:
> Ok, let's consider the following makefile fragment: > > <<<<<< > local_objects = a.o b.o c.o d.o > > all: all-recursive all-local > > all-recursive: > $(MAKE) -C subdir all > > all-local: % all-recursive > > all-local: $(local_objects) > <<<<<< > > The intention is clear: the recursive make in subdirectories shall be > finished before local objects are remade. However, with this > makefile, make will behave as follows: > > 1. make will start a job for "all-recursive" target > 2. make will notice that it has spare jobs, and will consider the > target all-local. > 3. all-local target has dependencies, and before making all-local > target itself, make will update its dependencies - in parallel with > the running "all-recursive" job. Thanks for refreshing my memory. I guess you are right about the further relaxed order-only prerequisites being too low-level. Maybe it is a good idea to implement .WAIT in terms of them, as you have suggested. -boris _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
