GNU make - transform every prerequisite into target (implicitly)

后端 未结 2 1309
情歌与酒
情歌与酒 2021-01-25 03:14

I have another make-like tool that produces an XML as an artifact after parsing my makefile which I\'ll then further process with Python.

It\'d simplify thi

2条回答
  •  离开以前
    2021-01-25 03:45

    This may take a few iterations. Try:

    %.h: null
        @echo header xyz = $@
    
    %: null
        @echo other xyz= $@
    
    null:
        @:
    

提交回复
热议问题