Hello all, I am French (did contribute to GCC: https://arxiv.org/abs/1109.0779 ...) and using GNU make 4.4 with Guile in my simpler GPL licensed, C++ coded project (an inference engine, amateur website being refpersys.org and code being on github below).
I have trouble in debugging and understanding all the behavior of GNU make What are the good ways to understand a GNU makefile behavior (on Linux only)? GNU make has $(error ...) and $(warning ...) but no $(message ...) or $(note ...) maybe a suggestion for future GNU make contributors could be to add a $(note ...) More precisely, it might take one or two arguments. With a single argument $(note ....) would expand the .... and display a message on stdout given by make with the file and line number. The expansion of it would be the empty string. so $(note hello CC is $(CC)) if located in GNUmakefile line 45 would display GNUmakefile:45: hello CC is /usr/bin/gcc and expand to the empty string With two arguments the display will be the same and the expansion to the second expanded arguments I have no idea if that is easy or not to implement. If it is easy and the the idea is acceptable I might try to implement it. Since it probably should be similar to $(warning ...) handling. Maybe this is easily achievable in GNU guile (my Debian make depends upon GNU guile 3.0), then it could be given as a example.... Thanks for reading -- Basile STARYNKEVITCH <[email protected]> 8 rue de la Faïencerie http://starynkevitch.net/Basile/ 92340 Bourg-la-Reine https://github.com/bstarynk France https://github.com/RefPerSys/RefPerSys https://orcid.org/0000-0003-0908-5250
