1
我的當前項目在其include/tatoparser
目錄中有幾個文件,我想與我的庫一起分發。如何讓automake安裝頭文件包含在一個子目錄中
[email protected] ~/MyProject $ ls include/tatoparser/
dataset.h interface_lib.h linkset.h sentence.h tagset.h
我創建了一個Makefile.am
引用這些文件:
[email protected] ~/MyProject $ cat include/Makefile.am
include_HEADERS = tatoparser/interface_lib.h tatoparser/sentence.h tatoparser/dataset.h tatoparser/tagset.h tatoparser/linkset.h
但是當我運行make install
引用的文件被複制到/usr/include
(或任何$(includedir)
設置爲),我想他們在複製/usr/include/tatoparser
。
我該怎麼做?
[放置頭文件中的在/ usr /包括使用automake子目錄?](HTTP的可能的複製:// stackoverflow.com/questions/5603902/placing-header-files-in-a-subdirectory-of-usr-include-with-automake) –