[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] maint.mk: don't maintain a second build-aux variable.
From: |
Jim Meyering |
Subject: |
Re: [PATCH] maint.mk: don't maintain a second build-aux variable. |
Date: |
Mon, 24 Oct 2011 19:37:39 +0200 |
Gary V. Vaughan wrote:
> I was wondering why 'make stable' would always use a stale version unless
> I manually updated my .version file first. It turns out that if you use
> a non-standard build-aux location, you have to tell GNUmakefile by setting
> _build-aux to get the .version dist-hook machinery, and that you also have
> to set build_aux in order for maint.mk to work properly.
>
> Before this patch, my cfg.mk needed:
>
> build_aux = $(srcdir)/libltdl/build-aux
> _build-aux = libltdl/build-aux
I would leave them for now, but factor out the duplication:
_build-aux = libltdl/build-aux
build_aux = $(srcdir)/$(_build-aux)
> This patch combines the two so that you I declare my build-aux directory
> with just:
>
> _build-aux = libltdl/build-aux
>
> Alternatively, we could change maint.mk to read:
>
> build-aux = $(srcdir)/$(_build-aux)
>
> ...but that leaves open the possibility of users like me only setting one
> or the other variable in cfg.mk and wondering why things almost work, but
> not quite. I think this is the cleaner, safer solution.
Wouldn't that break things for those who customize build_aux?
How about merely ensuring that they're consistent, for now,
i.e., by adding something like this:
ifneq ($(build_aux),$(_build-aux))
$(error ...)
endif
- [PATCH] maint.mk: don't maintain a second build-aux variable., Gary V. Vaughan, 2011/10/23
- Re: [PATCH] maint.mk: don't maintain a second build-aux variable.,
Jim Meyering <=
- Re: [PATCH] maint.mk: don't maintain a second build-aux variable., Gary V. Vaughan, 2011/10/24
- Re: [PATCH] maint.mk: don't maintain a second build-aux variable., Jim Meyering, 2011/10/25
- Re: [PATCH] maint.mk: don't maintain a second build-aux variable., Gary V. Vaughan, 2011/10/25
- Re: [PATCH] maint.mk: don't maintain a second build-aux variable., Gary V. Vaughan, 2011/10/26
- Re: [PATCH] maint.mk: don't maintain a second build-aux variable., Jim Meyering, 2011/10/27
- Re: [PATCH] maint.mk: don't maintain a second build-aux variable., Gary V. Vaughan, 2011/10/27
- Re: [PATCH] maint.mk: don't maintain a second build-aux variable., Jim Meyering, 2011/10/28
Re: [PATCH] maint.mk: don't maintain a second build-aux variable., Gary V. Vaughan, 2011/10/25