To whom it may concern:

I believe I have found a bug in the sequencing of dependencies resulting
from include statements: the following self-contained makefile builds
file "b" with $^ empty, whereas - in my opionion - it should have been
"a".

Regards,

Erik Boasson.

##  Makefile

all: a b ; cat $^ > $@
clean: ; rm -f all a a.d b b.mk b.d

include a.d b.d
include b.mk

b.mk: a ; echo "b: $^" > $@
b: ; echo "$^" > $@
%.d: % ; echo "$@: $<" > $@

a: ; echo "$@" > $@

##  The usual system details:

% make --version
GNU Make version 3.78.1, by Richard Stallman and Roland McGrath.
Built for sparc-sun-solaris2.6
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <[EMAIL PROTECTED]>.

% uname -a
SunOS suns25c388 5.8 Beta_Refresh sun4u sparc SUNW,Ultra-60

-- 

[Unclassified]

Reply via email to