How to treat a warning as an error in a Makefile?
问题 Is it possible to treat warnings as errors in a Makfile (and thus exit before Makefile proceeds) Furthermore, is it possible to filter out which warning yields an error? My use case: I want to use --warn-undefined-variables in combination with this so that Makefile will exit when a variable is undefined, which is a very common source of error. Obviously I don't want to manually check for each variable as this is error-prone/tedious. I couldn't find anything on this, but it's a pretty