本文介绍了自动制作不会在子目录中生成Makefile.in的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
首先,我只想说一遍,我是Autotools的新手.
First off I just want to say, I'm a total newb at Autotools.
我有一个结构如下的项目:
I have a project with the following structure:
+-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
Makefile.am has SUBDIRS=src
src/Makefile.am具有SUBDIRS = commands.
src/Makefile.am has SUBDIRS=commands .
src/commands/Makefile.am具有SUBDIRS = $(AUTODIRS)
src/commands/Makefile.am has SUBDIRS=$(AUTODIRS)
当我在根目录中运行automake时,它将生成Makefile.in和src/Makefile.in,但不会在命令和复制中生成
When I run automake in the root, it generates Makefile.in and src/Makefile.in, but not in commands and copy.
我在做什么错了?
推荐答案
确保您的configure.ac提及AC_CONFIG_FILES中的所有Makefile.
Make sure your configure.ac mentions all the Makefiles in AC_CONFIG_FILES.
这篇关于自动制作不会在子目录中生成Makefile.in的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!