メイクファイルには次のものがあります。
.PHONY: preq_test a b c d
a b c d:
@echo building $@
preq_test : a b | c d
@echo preq prequisites are: $^;
$^
ドキュメントに従って、すべての前提条件 (重複を除く) をリストすることになっています。
$^
$+
The names of all the prerequisites, with spaces between them. For prerequisites
which are archive members, only the named member is used (see Archives). The value
of $^ omits duplicate prerequisites, while $+ retains them and preserves their
order.
ただし、注文のみの前提条件は には表示されません$^
。
building a
building b
building c
building d
preq prequisites are: a b
今後の現在の動作に頼ることができますか、それとも別の方法で動作するはずですか、またはこれは未定義の動作と見なす必要がありますか?
ありがとう、
ジョン