Hi Kip and Nick,
On 12/30/2018 12:03 PM, Kip Warner wrote:
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. I tested in my own source tree and
confirmed that:
automake-1.16: warnings are treated as errors
Makefile.am:200: warning: user target 'Init_d_Stop.sh.log' defined here ...
/usr/share/automake-1.16/am/check2.am: ... overrides Automake target
'Init_d_Stop.sh.log' defined here
make: *** [Makefile:1156: ../Makefile.in] Error 1
Interesting. I've used this pattern for long time here
https://sourceforge.net/p/yat-util/code/HEAD/tree/trunk/Makefile.am
The most significant difference I can see is that my tests have suffix
'.test' and the log files '.log' (not '.test.log'). I know that variable
TEST_EXTENSIONS is set to '.test' by default so my guess would be that
the different behaviour would be related to this variable.
Cheers,
Peter