How to get the second dependency file using Automatic Variables in a Makefile?

前端 未结 1 634
醉话见心
醉话见心 2020-12-08 06:42

I need to get the nth dependency file from a rule, something similar to $n in bash. I need this because I\'d like to feed in individual dependency files as options to the bu

相关标签:
1条回答
  • dep.o: dep.src config1.cfg config2.cfg
        @echo the second preq is $(word 2,$^), the third is $(word 3,$^)
    
    0 讨论(0)
提交回复
热议问题