bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] GNUmakefile: simplify detection of unconfigured trees


From: Eric Blake
Subject: Re: [PATCH] GNUmakefile: simplify detection of unconfigured trees
Date: Thu, 16 Feb 2012 13:02:51 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120131 Thunderbird/10.0

On 02/16/2012 12:38 PM, Stefano Lattarini wrote:
> * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
> whether the tree make is being run from is already configured or
> not.  Related simplifications.
> ---
>  ChangeLog       |    7 +++++++
>  top/GNUmakefile |   14 ++------------
>  2 files changed, 9 insertions(+), 12 deletions(-)
> 

>  # If the user runs GNU make but has not yet run ./configure,
>  # give them a diagnostic.
> -_have-Makefile := $(shell test -f Makefile && echo yes)
> -ifeq ($(_have-Makefile),yes)
> +_gl-Makefile := $(wildcard [M]akefile)

According to 'info make', both 'makefile' and 'Makefile' serve as
defaults, so I'd rather see this as $(wildcard [mM]akefile).

> +ifneq ($(_gl-Makefile),)

But it's a cool simplification.  You've got my ACK.

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]