Is there a way to get GNU Make to exit with an error if it encounters a dependency error? For example, if the following is in the Makefile:
fileA: fileB fileA
@echo "(fileA) installing fileA"
fileB:
@echo "(fileB) installing fileB"
Running make produces these messages
(fileB) installing fileB
make: Circular fileA <- fileA dependency dropped.
(fileA) installing fileA
with an exit status of 0.
I would like make to exit with a non-zero code instead.