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