This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: subdir dependency


>>>>> ">" == OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp> writes:

>> I have a question related to Automake. When a subdirectory A
>> depends on a subdirectory B, that is, "make -C B" must be run
>> before "make -C A", how can I enforce the order? Automake `make's
>> subdirectories in the same order as seen in the variable SUBDIRS,
>> so that doesn't cause any problem if I set SUBDIRS in the correct
>> order (SUBDIRS = B A). However, I'm not sure what happens when the
>> user runs `make' with parallel make feature turned on. Can I
>> specify the dependency explicitly?

SUBDIRS is explicitly serializing.  Even with "make -j", B will be
built before A.

T


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]