小编aut*_*fer的帖子

带有 automake/autoconf 条件的 Makefile

谁能告诉我是否有办法向 Makefile.am 插入条件块,以便将其进一步传递给由 autotools 创建的 Makfile?

下面是一个例子:

ifeq "$(SOMEVAR)" ""
SOMEVAR="default_value"
endif
Run Code Online (Sandbox Code Playgroud)

这似乎是做有条件的事情的常见 Makefile 方式。Automake 切断 endif 行并最终失败并显示如下消息:

Makefile:390: *缺少‘endif’。停止。

有什么想法吗?

python automake autoconf conditional

5
推荐指数
1
解决办法
1944
查看次数

标签 统计

autoconf ×1

automake ×1

conditional ×1

python ×1