[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Not to stop make when encounter error
From: |
Greg Chicares |
Subject: |
Re: Not to stop make when encounter error |
Date: |
Thu, 08 Mar 2007 04:28:23 +0000 |
User-agent: |
Thunderbird 1.5.0.4 (Windows/20060516) |
On 2007-3-7 17:05 UTC, Peng Yu wrote:
>
> I have the following Makefile. However, the "make" program will stop
> if it encounters any error when compiling the .c file. I'm wondering
> if it is possible to compile the next file without stopping even if it
> encounters an error.
Yes. Two ways:
(1) make --keep-going
(2) write '-' before a command, to allow it to fail:
- gcc $< -o $@