04-23-04 01:34 PM
In article <slrnc8i0mb.7dd.haude@kir.physnet.uni-hamburg.de>,
Daniel Haude <haude@physnet.uni-hamburg.de> wrote:
> Hello,
>
> Why is make complaining about a "circular dependency" in this makefile?
>
> ----
> dh@kir:~/c/foo$ cat Makefile
> lexer.yy.c : lexer.yy
> flex --header-file=lexer.yy.h -o $@ $<
> dh@kir:~/c/foo$ make
> make: Circular lexer.yy <- lexer.yy.c dependency dropped.
> dh@kir:~/c/foo$
> ----
>
> Strangely, the error disappears when I call the target something else than
> lexer.yy.c
>
> What's the cause of this?
Make has built-in dependencies for:
*: *.o
*.o: *.c
which creates an indirect dependency for * <- *.c.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
[ Post a follow-up to this message ]
|