automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parallel builds with some ordering constraints


From: Nick Bowler
Subject: Re: Parallel builds with some ordering constraints
Date: Sun, 30 Dec 2018 19:19:26 -0500

On 12/29/18, Kip Warner <address@hidden> wrote:
> On Sat, 2018-12-29 at 16:10 -0500, Nick Bowler wrote:
[...]
>>   all_tests_except_start = test1.log test2.log test3.log test-
>> stop.log
>>   all_tests_except_stop = test-start.log test1.log test2.log
>> test3.log
>>
>>   $(all_tests_except_start): test-start.log
>>   test-stop.log: $(all_tests_except_stop)
>
> [snip]
>
>> Hope that helps,
>
> Almost! The problem is with the last rule you defined because a rule to
> generate test-stop.log would have already been generated by Automake
> and this would override it.

Huh.  That probably means the example in the manual is broken too.

Anyway, the solution is straightforward.  Rules in Makefile.am only
override Automake-supplied rules if they are spelled _exactly_ the same
way.  So you just need to change the spelling in the rule, usually by
using a variable like:

  test_stop_log = test-stop.log
  $(test_stop_log): blah blah blah

and the Automake-generated rule for test-stop.log should be emitted
normally.

Hope that helps,
  Nick



reply via email to

[Prev in Thread] Current Thread [Next in Thread]