On Mon, Dec 19, 2022 at 1:53 PM Alejandro Colomar <alx.manpa...@gmail.com> wrote: > > On 12/19/22 19:18, Dmitry Goncharov wrote: > > On Mon, Dec 19, 2022 at 11:24 AM Jeffrey Walton <noloa...@gmail.com> wrote: > >> For the *.pc file, we need '$(prefix)' to survive unexpanded. > > > > What about > > includedir:=$${prefix}/include > > myconfig.pc:; @echo 'includedir=$(includedir)' >> myconfig.pc > > That would render the $(includedir) variable unusable for use within the > Makefile (for example, within targets that install the header files).
Yep, that's why we track both includedir and pc_includedir. Jeff