私の最初の質問 (イェイ!) は、gnumake と並列ビルドについてです。簡単なサンプル ファイルを次に示します。
.PHONY: tool_1 tool_2 tool_3 tool_4 all tools
all: | tools
tools: | tool_2 tool_3 tool_4
tool_1:
# commands for tool 1
tool_2: | tool_1
# commands for tool 2
tool_3: | tool_1
# commands for tool 3
tool_4: | tool_1
# commands for tool 4
私がこの男に行う場合、コマンドが1回だけ実行され、いずれかを構築しようとする前に、make -j
ここで正しいことはありますか?tool_1
make
tool_[234]
私が探しているのは、最初にビルドされ、次に並行してビルドされるmake -j
原因があることですが、コマンドを3 回実行する必要はありません。それが理にかなっていることを願っています。提案やアイデアをありがとう!tool_1
tool_[234]
tool_1