On 12/29/18, Kip Warner <k...@thevertigo.com> 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