2
デフォルトでは、Makeは指定されたターゲットファイルを「最新の状態にする」ために「タッチ」します。 これを回避するには、this optionを使用することができます。「新規」をグローバルに作成できますか?
-W file, --what-if=file, --new-file=file, --assume-new=file
Pretend that the target file has just been modified. When used
with the -n flag, this shows you what would happen if you were to
modify that file. Without -n, it is almost the same as running a
touch command on the given file before running make, except that
the modification time is changed only in the imagination of make.
はMakefileで定義されたすべてのターゲットに対してグローバルに、このオプションを想定するのMakefile自体(おそらくMAKEFLAGS
オプション)でを設定相当するものはありますか?
'MAKECMDGOALS'には、コマンドラインで提供されるゴールだけが含まれていることに注意してください。 Makefileに定義されているすべてのターゲットを具体的に尋ねました。あなたが少しバックアップをして、実際に何を達成したいのかを記述すると、あなたの質問に答えるのが簡単になります。 – MadScientist