Hello Automakers. While trying to improve and extend test `mmodely.test', I stumbled upon the bug exposed by the attached test script (weird bug, BTW: it's triggered with GNU make and FreeBSD make, but not with Solaris make; role reversal for once ;-).
I suspect the bug is due to some incomplete VPATH rewrite somewhere in automake; I tried this simplicistic patch: diff --git a/lib/am/lex.am b/lib/am/lex.am index fb4077d..a9cedbd 100644 --- a/lib/am/lex.am +++ b/lib/am/lex.am @@ -18,7 +18,7 @@ ## See the comment about am__skipyacc in yacc.am. if %?MAINTAINER-MODE% if %?FIRST% -...@maintainer_mode_false@am__skiplex = test -f $@ || +...@maintainer_mode_false@am__skiplex = test -f '$@' || test -f '$(srcdir)/$@' || endif %?FIRST% endif %?MAINTAINER-MODE% diff --git a/lib/am/yacc.am b/lib/am/yacc.am index 6d35cd4..06bab7b 100644 --- a/lib/am/yacc.am +++ b/lib/am/yacc.am @@ -35,7 +35,7 @@ ## use non-generic rules. if %?MAINTAINER-MODE% if %?FIRST% -...@maintainer_mode_false@am__skipyacc = test -f $@ || +...@maintainer_mode_false@am__skipyacc = test -f '$@' || test -f '$(srcdir)/$@' || endif %?FIRST% endif %?MAINTAINER-MODE% but it did no good (failure still there, although due to a different reason apparently). Any idea? Regards, Stefano
foo.test
Description: application/shellscript
