我正在尝试编写一个相对简单的 Makefile,但我不确定如何使用模式最好地压缩规则。我尝试使用%
,但遇到了困难。这是扩展形式的 Makefile:
all : ./115/combine_m115.root ./116/combine_m116.root ... ./180/combine_m180.root
./115/combine_m115.root : ./115/comb.root
bash make_ASCLS.sh -l 115 comb.root
./116/combine_m116.root : ./116/comb.root
bash make_ASCLS.sh -l 116 comb.root
...
./180/combine_m180.root : ./180/comb.root
bash make_ASCLS.sh -l 180 comb.root