Debugging GNU make

后端 未结 7 1054
没有蜡笔的小新
没有蜡笔的小新 2020-12-22 18:33

Is there a command line way in make to find out which of the prerequisites of a target is not updated?

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-22 18:57

    Are you looking for Make's "dry run"? It will print out what make is doing without actually doing so, allowing you to see what happens.

    The flag is -n, use it like make -n.

提交回复
热议问题