On Mon, Dec 19, 2022 at 11:22 AM Paul Smith <psm...@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