天天看點

開源夏令營之foldcolumn工具及解決方案(六)制作manpage與Makefile制作方法使用help2man制作的foldcolumn指令行工具的manpagemakefile

制作方法

manpage可以手工通過troff來編寫,但更簡單友善的方法是使用help2man來制作。很多軟體是使用help2man來制作的,包括我使用的centos系統指令的manpage。help2man使用比較簡單,它是通過使用指令的 --help 和--version 參數的輸出(結合一些外部檔案内容參見 man help2man)來制作manpage,是以我使用help2man制作foldcolumn指令行工具的manpage,使用troff編寫libfoldcolumn庫函數的manpage。

使用help2man制作的foldcolumn指令行工具的manpage

初步的manpage如下,後面繼續添加内容

開源夏令營之foldcolumn工具及解決方案(六)制作manpage與Makefile制作方法使用help2man制作的foldcolumn指令行工具的manpagemakefile
開源夏令營之foldcolumn工具及解決方案(六)制作manpage與Makefile制作方法使用help2man制作的foldcolumn指令行工具的manpagemakefile

makefile

使用autoconf/automake/libtool制作makefile

繼續閱讀