This is the mail archive of the
mailing list for the GCC project.
Re: Ping^2: RFA (build): Avoid circular dependency
On 11/12/2010 03:13 PM, Joern Rennecke wrote:
>> I don't have the sources at hand, so I cannot see right now what is
>> the full chain of dependencies.
>> I'll review the patch early next week.
> Are you still planning to do the review in the near future?
Yes. Your patch has the disadvantage that a normal "make" will not
do the check anymore, because you removed the dependency from all to
s-tm-texi (which previously went all -> info -> gccint.info ->
tm.texi -> s-tm-texi).
What about this instead, which breaks the circular dependency by
making tm.texi phony. This way "$(MAKE) tm.texi" is effectively
a synonym of "$(MAKE s-tm-texi)".
--- Makefile.in (revision 166517)
+++ Makefile.in (working copy)
@@ -3688,7 +3688,10 @@ s-constrs-h: $(MD_DEPS) build/genpreds$(
target-hooks-def.h: s-target-hooks-def-h; @true
-tm.texi: s-tm-texi; @true
+ $(MAKE) s-tm-texi
$(RUN_GEN) build/genhooks$(build_exeext) > tmp-target-hooks-def.h
Does this work for you?