Re: feature requests: $(__FILE__) and $(__LINE__) textual macros

2024-01-27 Thread Paul Smith
On Sat, 2024-01-27 at 20:45 +0100, Basile Starynkevitch wrote: > NB I might perhaps implement such a feature if (and only if) I don't > have any copyright assigment to find. In my GCC contributing > experience fifteen years ago, that administrative step was really > painful. I am too old to start

Re: feature requests: $(__FILE__) and $(__LINE__) textual macros

2024-01-27 Thread Paul Smith
On Sat, 2024-01-27 at 20:27 +0100, Basile Starynkevitch wrote: > > It would be great if you could provide examples where these would > > be > > useful, especially examples that are not already covered by the > > output > > of the -p option to GNU Make. > > make -p don't show (unfortunately) the

Re: feature requests: $(__FILE__) and $(__LINE__) textual macros

2024-01-27 Thread Basile Starynkevitch
On 1/27/24 20:27, Basile Starynkevitch wrote: On 1/27/24 20:11, Paul Smith wrote: On Sat, 2024-01-27 at 18:06 +0100, Basile Starynkevitch wrote: For non-trivial GNUmakefile-s on Linux it would be nice to have a $(__FILE__) and $(__LINE__) textual macros of GNU make. It would be great if

Re: feature requests: $(__FILE__) and $(__LINE__) textual macros

2024-01-27 Thread Basile Starynkevitch
On 1/27/24 20:11, Paul Smith wrote: On Sat, 2024-01-27 at 18:06 +0100, Basile Starynkevitch wrote: For non-trivial GNUmakefile-s on Linux it would be nice to have a $(__FILE__) and $(__LINE__) textual macros of GNU make. It would be great if you could provide examples where these would be

Re: feature requests: $(__FILE__) and $(__LINE__) textual macros

2024-01-27 Thread Paul Smith
On Sat, 2024-01-27 at 18:06 +0100, Basile Starynkevitch wrote: > For non-trivial GNUmakefile-s on Linux it would be nice to have a > $(__FILE__) and $(__LINE__) textual macros of GNU make. It would be great if you could provide examples where these would be useful, especially examples that are

feature requests: $(__FILE__) and $(__LINE__) textual macros

2024-01-27 Thread Basile Starynkevitch
Hello For non-trivial GNUmakefile-s on Linux it would be nice to have a $(__FILE__) and $(__LINE__) textual macros of GNU make. They would behave as their equivalent __FILE__ and __LINE__ of the Cpp preprocessor. On Linux Debian trixie/sid x86-64, my GNU make is % /usr/bin/make --version