On Wed, Jul 12, 2023 at 10:06:15PM +0200, Jean-Marc Lasgouttes wrote:

Le 12/07/2023 à 21:39, Enrico Forestieri a écrit :
I think that the qmake code could be adapted to issue such warnings. I will have a look if nobody beats me to it.

To be frank, I'd love to be able to dispose of most of the stuff in qt.m4 and rely on qmake only. I have to say though that the current code is mysterious to me, for example when it come to percent variables.

There is nothing special about naming percent a variable and that is simply done because the fake custom target is named "%". See here:
https://doc.qt.io/qt-6/qmake-advanced-usage.html#adding-custom-targets

Without those "percent" variables, if you try to extract the qmake's variable INCPATH you would obtain:
$ make -s -f Makefile INCPATH
make: *** No rule to make target 'INCPATH'.  Stop.

Instead, with the "percent" variables the contents of the variable INCPATH is echoed to screen.

--
Enrico
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to