Re: User-configurable HTML splitting

Heime <[email protected]> Tue, 26 May 2026 08:24:15 +0000
Newsgroups gmane.comp.gnu.make.general
Message-ID <vLrgDQlx8n2sqxEQiuAJOlVdIfgvatGSpULODq_6lBJVbLbwlBGMqqV1nSgK7Nz5r-ANgYjbVeF1s_1CHZW-fU1E-AznCVsmJ8k7bfsDdyo=@protonmail.com>
On Monday, May 25th, 2026 at 12:30 AM, Heime <[email protected]> w=
rote:

>=20
> I want to include the ability for users to split by chapter,
> section, or node when outputting the html documentation.
>=20
> Variable OPTS is used as a general options not specific to html.
> With other html specific options stored in a different variable.
>=20
> makeinfo has the --split=3Dchapter, --split=3D section, and
> --split=3D node to do this.  How can I include this functionality
> for users of my makefile?
>=20
>=20
> opts =3D --force --enable-encoding -I ${srcdir}
> hmlopts =3D --split=3Dchapter # section, node
>=20
>=20
> srcs =3D ${srcdir}/antares.texi
>=20
> .PHONY: html
> html: ${hmldir}/antares.html
>=20
> .SECONDEXPANSION:
> $(hmldir)/antares.html: $(srcs) | $$(@D)
> =09makeinfo $(opts) --html -o $@ $<


I have included a split variable that the user can override.

make -f antares.mk split=3D--split=3Dchapter html

But it introduces the cumbersome `split=3D--split=3Dchapter'.
Any ideas upon how to simplify this with just the split=20
specification?

Have seen that people override variables when calling a makefile,
meaning that the variable option override does not include the
starting --.

Would like to include --split=3Dchapter as a valid option

So I can use=20

make -f antares.mk --split=3Dchapter html

How can I do such a thing?