[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to make 'cd' errors stop a rule?

From: Matt England
Subject: How to make 'cd' errors stop a rule?
Date: Sun, 04 Dec 2005 16:24:20 -0600

I find that the 'cd' command in this rule does not stop this make script:

        cd bogus-this-is-not-a-real-directory; ls -l
        @echo This is the 2nd cmd in the rule

How can I get make to error, and stop on this error, when trying to 'cd' to an invalid directory?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]