%% Peter Knight <[EMAIL PROTECTED]> writes:

  pk> I have found that the following simple makefile produces an error
  pk> with GNU make 3.77: (I have tried this using a PC running RH Linux
  pk> 6.1 and an IBM RS/6000 running AIX 4.3.2, with the same results.)


  pk> test/file.o : $$(@F)

  pk> make: *** No rule to make target `$(@F)', needed by `test/file.o'.  Stop.

  pk> Clearly there is a problem with the $$(@F) dependency.

Yes, there is... and it's that GNU make doesn't support this syntax
(double-$$ variables on the prerequisites list).

This is not standard make syntax, and a number of versions of make don't
support it.  GNU make is one of them.

The GNU make manual has a chapter "Incompatibilities and Missing
Features", and this is listed there along with a possible workaround
(the workaround will work for some ways of using $$@, but not all).

HTH...

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.ultranet.com/~pauld/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

Reply via email to