Shouldn't mkinstalldirs be a dependency for do-install-info to insure
that $(DESTDIR)$(infodir)/ exists?
No, because mkinstalldirs might not exist, in general. Ensuring that
the directory exists, which is certainly desirable, is another can of
worms that would go far afield here. It's an example.
d=.
install -m 644 $d/slib.info /usr/local/share/info/slib.info
install: cannot stat `/slib.info': No such file or directory
That's the mistake Ralf pointed out that I made, leaving off the ;\ in
the trial example in my example (that was never committed), so $d wasn't
defined in the install command. The example that was actually in
standards.texi did work, aside from the problems you pointed out
originally.
Someone reading standards.info is looking at examples to learn best
practices. If the example of an installation of a single file does
not follow the text of standards.info, and contains fatal bugs to
boot, what is the reader supposed to conclude?
I conclude that I shouldn't have sent you my trial example.