【问题标题】:Keyword '|' in Makefile Prerequisites [duplicate]关键字“|”在 Makefile 先决条件 [重复]
【发布时间】:2016-06-22 02:11:33
【问题描述】:

下面的MakeFile:

afl-fuzz: afl-fuzz.c | test_x86
gcc afl-fuzz.c -o afl-fuzz

“|”是什么意思在test_x86 之前?

MakeFile 来自:https://github.com/loverszhaokai/AFL/blob/gcc_mode/Makefile

【问题讨论】:

  • 您可能想发布一个答案,而不是用答案更新您的问题。现在你有一个问题和一个答案......

标签: makefile gnu-make


【解决方案1】:

targets : normal-prerequisites | order-only-prerequisites

如果order-only-prerequisites 更改,目标将不会更新。

参考:https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html

【讨论】:

    猜你喜欢
    • 2023-03-23
    • 1970-01-01
    • 2016-08-18
    • 2014-03-08
    • 2013-04-22
    • 1970-01-01
    • 2012-05-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多