This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Looking at the end of PR10996 [Take 2 for the *.7 files]
- From: neroden at twcny dot rr dot com (Nathanael Nerode)
- To: gcc-patches at gcc dot gnu dot org
- Cc: kelleycook at wideopenwest dot com, mark at codesourcery dot com
- Date: Wed, 22 Oct 2003 13:31:05 -0400
- Subject: Re: Looking at the end of PR10996 [Take 2 for the *.7 files]
>GNU Make always uses the rule itself when determining $<. If you use
>$+, you do get all of the dependencies -- but the ones not in the rule
>itself come after the ones in the rule.
Indeed, I just verified this. :-)
However, note that Kelley's proposed patch contains *no* dependencies in
the rules themselves, and *does* therefore generate difficult order
dependencies.
This can be fixed as follows. Instead of:
>+$(docobjdir)/%.info:
> if [ x$(BUILD_INFO) = xinfo ]; then \
> $(MAKEINFO) $(MAKEINFOFLAGS) -I $(docdir) \
> -I $(docdir)/include -o $@ $<; \
> fi
Do this:
>+$(docobjdir)/%.info: %.texi
> if [ x$(BUILD_INFO) = xinfo ]; then \
> $(MAKEINFO) $(MAKEINFOFLAGS) -I $(docdir) \
> -I $(docdir)/include -o $@ $<; \
> fi
And similarly in the other rules.
This will be insufficient for the following targets:
gfdl.7 (Best solution: Rename fdl.texi to gfdl.texi!)
fsf-funding.7 (Best solution: Rename funding.texi to fsf-funding.texi!)
gcc.1 (Sorry, special case rule needed here.)
--
Nathanael Nerode <neroden at gcc.gnu.org>
http://home.twcny.rr.com/nerode/neroden/fdl.html