[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Expanded rules for scripts
From: |
Alexandre Oliva |
Subject: |
Re: Expanded rules for scripts |
Date: |
14 Dec 2000 15:32:35 -0200 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
On Dec 14, 2000, Pavel Roskin <address@hidden> wrote:
> You cannot make the target of the suffix rule depend on anything else
> other then the "corresponding implicit prerequisite".
Do you have an example of something that breaks with this? I've heard
about this before, but all I know of is a bug in FreeBSD make that has
broken some suffix rules lately.
Will it still break if the implicit dependency that comes with the
suffix rule is duplicated in the explicit dependences, i.e.:
.c.o:
$(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
foo.o: foo.c foo.h
> This would work as expected with GNU make, but is will break with BSD
> make. It will not just break, it will break badly, because it is not the
> explicit rule that in ignored by BSD make - it is the suffix rule. Thus
> the commands in the suffix rule will not be run by the BSD make.
Doesn't it even report the fact that it doesn't know how to build
foo.o?
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer address@hidden, redhat.com}
CS PhD student at IC-Unicamp address@hidden, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me