This adds targets to build the clang
man page, as in the corresponding Makefile.
The output is used in Debian packaging,
which is currently stuck using autotools.
Details
- Reviewers
chandlerc
Diff Detail
Event Timeline
I think the logic here should be bundled up in a macro in the LLVM cmake tree so that we can use it both for Clang's man page generation but also generating other man pages. Does that make sense?
I didn't because this is the only thing that uses pod2man or groff AFAICS, but I'll move it to LLVM to give people that option.
Clang's man page is the only thing that is generated like this. The rest use Sphinx's manpage output.
@chandlerc given the above, do you still want me to create a macro/function? I'm not deeply involved here, so grain of salt, but I think it'd be better to converge on one documentation tool (Sphinx) than to perpetuate use of multiple formats (Sphinx & pod2man, and whatever else there may be). I could look at rewriting the clang.pod file in Sphinx, and then use Sphinx in CMake. Is that a reasonable change?
BTW, there's this: https://llvm.org/bugs/show_bug.cgi?id=23054, so what's there seems to be broken on OS X at least, though I can't verify that.