At Tuesday 20 April 2010, Ralf Wildenhues <ralf.wildenh...@gmx.de> 
wrote:
> Yeah, heirlooom make has a .l.o rule that triggers before our .l.c
> and .c.o rule chains.
> 
> I guess this could be worked around by adding explicit rules (at
> least that's what SUSv3 recommends),
> maybe explicit dependencies without rules suffice.
Yes, they does.  I hacked a bit the silent5.test to demonstrate this 
(the diff is in the attached "patch").  However, I don't know enough 
Automake internals to easily write a patch integrating this knowledge 
into Automake core.

>  I'm not sure we should spend time on this old make, though.
If I venture to write a patch to solve this problem, will you
consider it?  As I said, I'm blissfully ignorant of Automake 
internals, so don't expect too much -- but I might give it a try 
nonetheless.

Thanks,
   Stefano
From 24db3abde7bf91af382aec760e7924549a7fbd3f Mon Sep 17 00:00:00 2001
From: Stefano Lattarini <stefano.lattar...@gmail.com>
Date: Thu, 22 Apr 2010 14:14:17 +0200
Subject: [PATCH] tweak silent5.test to cater for heirloom make bug

---
 tests/silent5.test |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tests/silent5.test b/tests/silent5.test
index 1f06cf0..b0f9291 100755
--- a/tests/silent5.test
+++ b/tests/silent5.test
@@ -108,6 +108,10 @@ $ACLOCAL
 $AUTOMAKE --add-missing
 $AUTOCONF
 
+# tweak generated Makefile.in, required to have heirloom-make working
+echo 'foo5.o: foo5.c' >> Makefile.in
+echo 'baz5.o: baz5.c' >> sub/Makefile.in
+
 # configure once for fastdep, once for non-fastdep, once for nodep
 for config_args in '' am_cv_CC_dependencies_compiler_type=gcc \
   --disable-dependency-tracking
-- 
1.6.5

Reply via email to