bug-make
[Top][All Lists]
Advanced

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

Re: [doc] MAKEOVERRIDES is undocumented


From: Paul Smith
Subject: Re: [doc] MAKEOVERRIDES is undocumented
Date: Mon, 19 Dec 2022 11:22:34 -0500
User-agent: Evolution 3.46.2 (by Flathub.org)

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)

??

An assignment of includedir on the command line will override any
setting in the makefile, so no need to use an ifeq etc.



reply via email to

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