使用汽车安装标题

Installing headers using automake

本文关键字:标题 安装 汽车      更新时间:2023-10-16

我正在编写一个使用自动工具进行编译/安装的库。我的目录树有点像这样

/src/
    file1.cpp
    file2.cpp
/include/
    dir/
        header1.hpp
        header2.hpp
        subdir/
            header.hpp
configure.ac
Makefile.am

我想在$(includedir)/subdir/中安装include/subdir/*中的标题。我怎么做?不,递归makefiles不是一个选择。递归认为有害。http://miller.emu.id.au/pmiller/books/rmch/

尝试:

subdirheadersdir = $(includedir)/subdir
subdirheaders_HEADERS = include/subdir/header.hpp

请注意,您不能使用通配符(例如include/subdir/*.hpp)。您必须列出所有文件。另外,subdirheaders只是一个示例名称。您可以使用任何想要的东西。