How to have GNU make explicitly test for failure?

前端 未结 3 1554
臣服心动
臣服心动 2020-12-24 00:50

After years of not using make, I find myself needing it again, the gnu version now. I\'m pretty sure I should be able to do what I want, but haven\'t figured out how, or fo

3条回答
  •  无人及你
    2020-12-24 00:58

    Put a - before the command, e.g.:

    -myProg bad_input >> test.log
    

    GNU make will then ignore the process exit code.

提交回复
热议问题