pretty print makefiles

前端 未结 2 713
小鲜肉
小鲜肉 2021-01-31 19:32

The linux kernel (and various other projects including git) have very nice makefiles that hide the giant cc calls into nice little acronyms.

For example:



        
2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-31 20:19

    For a much more complicated makefile, you could use a Python script to capture the output in realtime and process it however you like, and then print them in realtime: example.

提交回复
热议问题