bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug involving .SUFFIXES ?


From: Willem Vermin
Subject: bug involving .SUFFIXES ?
Date: Wed, 7 Aug 2002 17:55:31 +0200 (MET DST)

LS,

Using this Makefile:

#
.SUFFIXES::
.SUFFIXES:: .o

all:    foo.o

%.o:
        @echo value of '$$<' is $<
        @echo value of '$$@' is $@
#

I get as expected:

  value of $< is
  value of $@ is foo.o

However, when I replace the double colons (::) after .SUFFIXES in
single colons (:), I get this:

  value of $< is
  value of $@ is foo.o
  value of $< is
  value of $@ is all.o
  cc   all.o foo.o   -o all
  cc: all.o: No such file or directory
  cc: foo.o: No such file or directory
  cc: No input files
  make: *** [all] Error 1

Is this a bug, or am I missing something?

Regards,

Willem Vermin

Willem Vermin         tel (31)20 5923000
SARA, Kruislaan 415   fax (31)20 6683167
1098 SJ Amsterdam     address@hidden
Nederland




reply via email to

[Prev in Thread] Current Thread [Next in Thread]