Debugging GNU make

后端 未结 7 1026
没有蜡笔的小新
没有蜡笔的小新 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 19:21

    Your question is a little unclear. If you want to see which prerequisite files have not been modified recently, use ls -l to see their modification time. If you want to see what make is doing, try this:

    # Make will announce when it is making this target, and why.
    sometarget: preq1 preq2 preq3
        @echo making $@
        @echo The following preqs are newer than the target: $?
        do_things
    
    0 讨论(0)
提交回复
热议问题