Re: make-3.79.1 bug breaks linux-2.5.24/drivers/net/hamradio/soundmodem

From: Henning Makholm (hkwsapmo.skwlqgk@protocol.com)
Date: Sat Jun 22 2002 - 16:51:24 EEST

  • Next message: Ricardo Denis: "ax25 and 2.4.x"

    Scripsit "Adam J. Richter" <zvapcjt.qtaxeumhjf@rele.tunk.net>

    [Warning: I am not the make maintainer; I just lurk on bug-make]

    > $(obj)/sm_tbl_%: $(obj)/gentbl
    > $<

    > obj was set to "." /usr/src/linux/Rules.make, which was included
    > earlier in the Makefile.

    > Until the make bug is fixed, I have worked around the problem
    > by replacing the rule with:

    > $(obj)/sm_tbl_%: $(obj)/gentbl
    > PATH=$(obj):$$PATH $<

    That looks like an excessively complicated workaround. Why not just

    $(obj)/sm_tbl_%: $(obj)/gentbl
            $(obj)/gentbl

    ?

    I'm not sure this is really a bug either. It is a Good Thing that make
    tries to normalize the names of targets and dependencies internally,
    lest the build may be incomplete or redundant if make does not realize
    that foo.bar and ./foo.bar is the same file. It is quite reasonable
    for $< to unfold to the *canonical* name of the file in question, I
    think.

    If one absolutely wants the command to use the exact form of the
    dependency that's used in the dependency list, it's easy to simply
    reproduce that form, replacing the % by $*

    -- 
    Henning Makholm                                "You are in a little twisting
                                                maze of passages, all different"
    -
    To unsubscribe from this list: send the line "unsubscribe linux-hams" in
    the body of a message to zmxnl@paragoninnovations.com
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    



    This archive was generated by hypermail 2b30 : Sat Jun 22 2002 - 16:52:37 EEST