bug-make
[Top][All Lists]
Advanced

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

Re: [doc] MAKEOVERRIDES is undocumented


From: Dmitry Goncharov
Subject: Re: [doc] MAKEOVERRIDES is undocumented
Date: Mon, 19 Dec 2022 21:57:43 -0500

On Mon, Dec 19, 2022 at 1:54 PM Alejandro Colomar
<alx.manpages@gmail.com> wrote:
> That would render the $(includedir) variable unusable for use within the
> Makefile (for example, within targets that install the header files).

We can introduce another variable, e.g. myincludedir and initialize it
with the expanded value of includedir and use myincludedir within the
makefile.

includedir:=$${prefix}/include
$(eval myincludedir:=$(includedir))
myconfig.pc:; @echo 'includedir=$(includedir)' >> myconfig.pc


regards, Dmitry



reply via email to

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