Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.