On Mon, 2007-03-05 at 18:41 +0100, Johannes Hölzl wrote:

> VPATH := ../dir/
> all: a
> .SECONDARY:
> a: b b
>     @echo "compile"
> ../dir/b:

> $ mkdir ../dir
> $ touch ../dir/b
> $ make -f test.make
> make: Circular a <- b dependency dropped.
> compile
> 
> Of course a depends on b, but why depends b on a?
> When only one b is on the a line, the message isn't shown,
> when the .SECONDARY: is missing it isn't shown and when
> the b file is placed under ./dir the message is also not shown.

I can confirm this on my Linux box.  It's even stranger if you look at
the debug output, since make appears to try to build "b" right after it
considers "all", without first considering "a" (according to the
output).

Please file a bug against GNU make at the Savannah project site so we
can track this issue:

    https://savannah.gnu.org/projects/make/

If you don't have a Savannah account and you file this bug anonymously,
be sure to add yourself to the CC list so you'll get updated when a fix
is available.

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


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to