bug-make
[Top][All Lists]
Advanced

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

Re: [doc] MAKEOVERRIDES is undocumented


From: Jeffrey Walton
Subject: Re: [doc] MAKEOVERRIDES is undocumented
Date: Mon, 19 Dec 2022 11:23:49 -0500

On Mon, Dec 19, 2022 at 11:22 AM Paul Smith <psmith@gnu.org> wrote:
>
> On Mon, 2022-12-19 at 10:57 -0500, Jeffrey Walton wrote:
> >    ifeq ($(includedir),)
> >      includedir := $(prefix)/include
> >      PC_INCLUDEDIR = $${prefix}/include
> >    else
> >      PC_INCLUDEDIR = $(includedir)
> >    endif
>
> Maybe I'm misunderstanding some subtlety here but why not just:
>
>   includedir := $(prefix)/include
>   PC_INCLUDEDIR = $(includedir)

For the *.pc file, we need '$(prefix)' to survive unexpanded.

Jeff



reply via email to

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