Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要从规则中获取第 n 个依赖文件,类似于 bash 中的 $n。我需要这个,因为我想输入单个依赖文件作为构建程序的选项。
这是一个例子:
dep.o: dep.src config1.cfg config2.cfg parse -cfg1 $2 -cfg2 $3 -o $@ $<
是否可以?
dep.o: dep.src config1.cfg config2.cfg @echo the second preq is $(word 2,$^), the third is $(word 3,$^)