Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Doug Evans <dje@google.com>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Makefile fix
Date: Sat, 08 Feb 2014 05:00:00 -0000	[thread overview]
Message-ID: <CADPb22SG2vWnuF5K+yzJoy3gJ0Ku=4=PihD=oJ_yVxkQ=+u7+A@mail.gmail.com> (raw)
In-Reply-To: <201402041033.s14AX8Ai013211@glazunov.sibelius.xs4all.nl>

On Tue, Feb 4, 2014 at 2:33 AM, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
> The diff below fixes an issue that has been bothering me for quite a
> while.  When using OpenBSD make, almost everything in gdb/ gets
> rebuilt.  The problem is the use of the all-lib phony target, which is
> always considered to be out-of-date, and used as a prerequisite of
> libgnu.a and the gnulib string.h, which are therefore also considered
> to be out-of-date.  I have no idea why this problem doesn't show up
> with GNU make.  But the GNU make manual clearly states that phony
> targets should not be prerequisites of real target files:
>
>   <http://www.gnu.org/software/make/manual/make.html#Phony-Targets>
>
> It seems to me that the phony target can be easily avoided; see the
> diff below.  But perhaps I'm missing something?
>
>
>
> diff --git a/gdb/Makefile.in b/gdb/Makefile.in
> index ed84e35..937478b 100644
> --- a/gdb/Makefile.in
> +++ b/gdb/Makefile.in
> @@ -1263,10 +1263,8 @@ gdb$(EXEEXT): gdb.o $(LIBGDB_OBS) $(ADD_DEPS) $(CDEPS) $(TDEPLIBS)
>                 $(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES)
>
>  # Convenience rule to handle recursion.
> -$(LIBGNU) $(GNULIB_H): all-lib
> -all-lib: $(GNULIB_BUILDDIR)/Makefile
> +$(LIBGNU) $(GNULIB_H): $(GNULIB_BUILDDIR)/Makefile
>         @$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS=$(GNULIB_BUILDDIR) subdir_do
> -.PHONY: all-lib
>
>  # Convenience rule to handle recursion.
>  .PHONY: all-data-directory

I found the patch where this went in but I couldn't find anything interesting.
"all-lib" is there, I'm guessing, just as a convenience for typing,
but I'm not sure how often it's used so if it's getting in the way I'm
ok with this change.
I can't think of any problems with the patch.
[And we could still keep all-lib as a convenience rule, but I'm ok
with deleting it for now.]


  reply	other threads:[~2014-02-08  5:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-04 10:33 Mark Kettenis
2014-02-08  5:00 ` Doug Evans [this message]
2014-02-08 11:41   ` Mark Kettenis
2014-02-10  0:58     ` Doug Evans
2014-02-10  1:41       ` Doug Evans
2014-02-10 13:15         ` Mark Kettenis
2014-02-10 14:23           ` Joel Brobecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADPb22SG2vWnuF5K+yzJoy3gJ0Ku=4=PihD=oJ_yVxkQ=+u7+A@mail.gmail.com' \
    --to=dje@google.com \
    --cc=gdb-patches@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox