I have a makefile that displays a couple of information to the user using function calls to $(info) . However, the makefile also includes files with auto-generated dependencies updated with gcc -M . Whenever such a dependency needs to be redone, GNU Make re-processes everything, duplicating the result generated with $(info) and similar calls.
Is there a way to determine if GNU Make performs the first or second such pass in the makefile to avoid duplicating the $(info) lines?
source share