bug-make
[Top][All Lists]
Advanced

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

False warning about a circular dependency


From: Johannes Hölzl
Subject: False warning about a circular dependency
Date: Mon, 05 Mar 2007 18:41:53 +0100
User-agent: Thunderbird 1.5 (Windows/20051201)

Hi,

We are using make 3.81 under CygWin (Windows XP SP2).

I have the following makefile: "test.make":

------------------8<---------------------
VPATH := ../dir/

all: a

.SECONDARY:

a: b b
   @echo "compile"

../dir/b:

------------------8<---------------------

I am getting the following:

$ 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.

yours sincerely,
   Johannes






reply via email to

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