gpt4 book ai didi

c++ - Automake 不在子目录中生成 Makefile.in

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:36:50 24 4
gpt4 key购买 nike

首先我只想说,我是 Autotools 的新手。

我有一个具有以下结构的项目:

+-src
+-commands
Makefile.am
+-copy
Makefile.am
copy.h
copy.cpp
+-delete
Makefile.am
delete.h
delete.cpp
main.cpp
Makefile.am
Makefile.am

Makefile.am 有 SUBDIRS=src

src/Makefile.am 有 SUBDIRS=commands 。

src/commands/Makefile.am 有 SUBDIRS=$(AUTODIRS)

当我在根目录下运行 automake 时,它​​会生成 Makefile.in 和 src/Makefile.in,但不会在命令和复制中生成。

我做错了什么?

最佳答案

确保您的 configure.ac 提到了 AC_CONFIG_FILES 中的所有 Makefile。

关于c++ - Automake 不在子目录中生成 Makefile.in,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21058125/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com