This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]