Order of processing components in makefile

前端 未结 4 1938
死守一世寂寞
死守一世寂寞 2020-12-09 01:17

In a makefile, the dependency line is of the form -

abc: x y z

All three of the components (x,y,z) are themselves targets in dependency lin

4条回答
  •  情歌与酒
    2020-12-09 01:37

    From https://stackoverflow.com/a/22638294/636849, you can add the pipe symbol:

    abc: | x y z
    

    From make manual: Order-only prerequisites can be specified by placing a pipe symbol (|) in the prerequisites list: any prerequisites to the left of the pipe symbol are normal; any prerequisites to the right are order-only:

    targets : normal-prerequisites | order-only-prerequisites

提交回复
热议问题