tukaani-project / xz

XZ Utils
https://tukaani.org/xz/
Other
532 stars 95 forks source link

Include Doxygen html files in release #30

Closed JiaT75 closed 1 year ago

JiaT75 commented 1 year ago

Pull request checklist

Please check if your PR fulfills the following requirements:

Pull request type

Please check the type of change your PR introduces: - [ ] Bugfix - [ ] Feature - [ ] Code style update (formatting, renaming, typo fix) - [ ] Refactoring (no functional changes, no api changes) - [X] Build related changes - [X] Documentation content changes - [ ] Other (please describe): ## What is the new behavior?

Does this introduce a breaking change?

Other information

Putting the docs in liblzma folder may be unnecessary. Other distributions seems to place their html documentation files in a directory called "html" in the doc directory. If we just want to include it in the "html" directory in /doc, then the first and third commit can be omitted.

JiaT75 commented 1 year ago

This includes the doxygen .html files in the release, but does not install them. I will need to rework this to actually install the files, which seems more useful than just including them.

JiaT75 commented 1 year ago

Now I have the HTML files being installed. They are currently installed to $(docdir)/liblzma, for liblzma headers only, or $(docdir)/html for full documentation. So, by default, it will install to /share/doc/xz/liblzma, which I am not sure if I like.

I don't know of a good clean way to install to /share/doc/liblzma (or /share/doc/liblzma/html if that makes more sense) since $(docdir) is /share/doc/xz. We can always install to $(docdir)/../liblzma, but that is hacky. If there is a good clean way to do this, I might be interested to try it.

If we don't like how it is now, the easiest alternative is to always install to /share/doc/xz/html and not care about the distinction between liblzma header only documentation and all source files documentation.