Re: [PATCH] libgloss: doc: generate single page & split html manuals
Mike Frysinger <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <ZWb6Eoh2dJrpkizl@vapier> |
On 16 Oct 2023 13:44, R. Diez wrote: > >>> [...] > >>> add an extra rule to also generate the split page manual. > > >> Is 'html-local' the new target? > > > this is an internal Automake hook point. people still run `make html` and > > they'll get both forms of the manual. > > If I understood it correctly, you are not actually adding an extra rule, but injecting an extra step in the standard 'html' rule. i don't know if you're trying to understand the internals, or just form a mental model of how this comes together. from a makefile perspective, it is a new rule that you can `make html-local` if you really want. automake will add a dep on the new rule to the standard html rule iff the rule exists so that people don't have to run the explicit xxx-local rules. > The makefile will then be generating both 'single' and 'split' HTML documentation variants at once. This will usually be a waste of CPU time and disk space, will it not? I guess most people would normally want one version or the other, but not both. currently, the html manual isn't built by default. it's only generated if the user runs `make html` explicitly. but sure, if the user only wants one version and not the other, it's technically a waste of time. considering the manual generation takes <150ms on my system per variant, i don't think it's worth the time debating this. running configure takes significantly longer. other projects haven't really provided a choice to people -- they generate both. > The 'html' target, and the notion single/split, seems like a standard Automake concept, but I am not familiar with it yet. Is the Automake user supposed to specify via MAKEINFOFLAGS whether to generate a single or split variant? What happens if the user specifies MAKEINFOFLAGS=--no-split or MAKEINFOFLAGS=--split=chapter ? the single/split is a texinfo thing, not automake. the point of generating both of them is to make it easier for people to have access to whichever version they want, and to make it easier for us producing the release docs for the website. -mike
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmVm+hIACgkQQWM7n+g3 9YFIgg//VfPklH2tiWkK/RBATD0094BCoUyXYYsG+gayl1bmEfvMVlg6caiMjizO gbeSccYV/vcQ4mQhkue/XC3lJsWgQBUbt0WXrhkCNiJYBRLpYke+fJgwZQ3CC9xx TOsbgy68qfB/4V8VBTGhrCUVlInv+ienGrsarFwxz5a4nZ7RJwbONc6DW5P44r0f 3rYJdm/hUTaqPWlv4SbB9F7r86ez5ZRxbPiKuy69nZT5JskeSO+3hoZez3XmjFUo yrwEChkaAQt90moOjD2N0bKTSAFRIdemUQJX6JnizaW2Wq/gdxC63Z11V8vcMX5X BLLoqf/X4U8PBy5w0PP6Lez9ReIgMHRyczMKWHSLH1pDJD27APRDPjly3ypKpK9G q09fXdGGT5qQkAbkPVi34Qb29zJEsTgurp2JgHpYsVjuEvtVKYAHUEL28+bUUVoE 7lQNKVZtXIC5GmHYfHsyCyXwF7L+vBPIIuTx3Brqn3x6OKMWPqnoL1AGANpkxZwh HbHAYcgyFGYy6ApE3L02OHO230FVmWOccvLO9hqXfNfCXgLems3hETrKsgBuO3Sa jfOSaDnce2tAAesAxkVYi8Jvb+19piUCcOsUXJGQ6VEwA7sBU6S6/gA4o0quDQ3b Lh7iHz/otu9YAySMGXcaoImbqzY0sW17nd37geCspqVAGN0q1ak= =b6FC -----END PGP SIGNATURE-----