make-3.79.1 bug breaks linux-2.5.24/drivers/net/hamradio/soundmodem

Adam J. Richter (adam@yggdrasil.com)
Fri, 21 Jun 2002 23:57:38 -0700


linux-2.5.24/drivers/net/hamradio/soundmodem/Makefile contains
the following rule:

$(obj)/sm_tbl_%: $(obj)/gentbl
$<

obj was set to "." /usr/src/linux/Rules.make, which was included
earlier in the Makefile.

The problem is that when make executes this rule it executes
"gentbl" rather than "./gentbl". This causes the command to fail if
you do not have "." in your path. Make-3.79.1 is apparently being too
clever in expanding file names. I think this is a make bug.

Until the make bug is fixed, I have worked around the problem
by replacing the rule with:

$(obj)/sm_tbl_%: $(obj)/gentbl
PATH=$(obj):$$PATH $<

Adam J. Richter __ ______________ 575 Oroville Road
adam@yggdrasil.com \ / Milpitas, California 95035
+1 408 309-6081 | g g d r a s i l United States of America
"Free Software For The Rest Of Us."
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/