From: Paul Smith <psmith@gnu.org>
To: Simon Marchi <simon.marchi@polymtl.ca>
Cc: binutils@sourceware.org, gdb-patches@sourceware.org
Subject: Re: Require GNU make to build binutils-gdb
Date: Thu, 17 Nov 2016 20:43:00 -0000 [thread overview]
Message-ID: <1479415358.3489.313.camel@gnu.org> (raw)
In-Reply-To: <d9cb5139cd8d41d27464716b2f135e9c@polymtl.ca>
Regarding the patch linked to earlier, I wonder why multiple pattern
rules were added, rather than just using VPATH plus a few pattern rules
/ explicit rules for the special cases?
I didn't check carefully.
On Thu, 2016-11-17 at 15:33 -0500, Simon Marchi wrote:
> But as Andreas Schwab mentioned in our earlier discussions, there is
> already such a check for gcc:
>
> Â Â @if gcc
> Â Â ifeq (,$(.VARIABLES)) # The variable .VARIABLES, new with 3.80, is
> never empty.
> Â Â $(error GNU make version 3.80 or newer is required.)
> Â Â endif
> Â Â @endif gcc
>
> Since we don't have a particular reason to want 3.81 over 3.80, we could
> just re-use this check (make it unconditional), if that makes it easier.
If you want to check for 3.81, you could look for the .FEATURES variable
instead of .VARIABLES; .FEATURES was introduced in 3.81 and is intended
to let your makefile query what features are available without worrying
about specific versions.
It's also never empty, if it exists. It has one nice advantage in that
it's a static value, while .VARIABLES requires GNU make to create a list
of the names of all the variables. But, if this check is done early
that's not such a big deal.
3.81 was released 10.5 years ago (Apr 2006).
> > for sim/, i have no problem having it follow gdb, although i was
> > planning on converting it to automake ...
>
> I think that's a good thing then, automake probably plays better with
> GNU make than other makes.
automake, technically, generates POSIX compliant makefiles that don't
rely on GNU make features at all and should work with a wide range of
different make implementations.
At least, that's how it is unless something has changed since I looked
last.
next prev parent reply other threads:[~2016-11-17 20:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-17 19:11 Simon Marchi
2016-11-17 20:06 ` Mike Frysinger
2016-11-17 20:33 ` Simon Marchi
2016-11-17 20:43 ` Paul Smith [this message]
2016-11-17 21:14 ` Simon Marchi
2016-11-17 20:39 ` Andreas Schwab
2016-11-18 10:33 ` Nick Clifton
2016-11-18 13:00 ` Simon Marchi
2016-11-18 17:04 ` Nick Clifton
2016-11-19 3:04 ` Simon Marchi
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=1479415358.3489.313.camel@gnu.org \
--to=psmith@gnu.org \
--cc=binutils@sourceware.org \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@polymtl.ca \
/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