Wikipedia:Reference desk/Archives/Mathematics/2006 July 15

Generated texinfo documents with GNU Automake.
I'm converting a small package to use GNU Automake. This package has documentation which is generated from an input file and a script; simple enough to write a Makefile rule for. However, if I simply put the rule for generating it in Makefile.am and set, then Automake complains:

automake: doc/Makefile.am: couldn't open `doc/generated.texi': No such file or directory

I tried adding generated.texi to, but this makes no difference, Automake still won't run. On the other hand, if I build generated.texi first, I can run Automake. Then, even if I do a, I can still  , for instance; it makes the files listed in   before trying anything else, so that works fine. I can even take the generated tarball and  it; the only problem appears to be with automake refusing to accept that the input will be generated later.

An alternate course I tried was to use  to cause the generated file not to be wrapped up in the distribution tarball. This worked, but now  doesn't generate it. does, of course, but this means that the Info files aren't created or installed at compile time---not what I was looking for.

What's the cleanest course of action from this point? If I use the former (working) configuration to make generated.texi, then the next person who plays with the Automake configuration starting from  will be very confused at why it suddenly stopped working.

Is this a bug in Automake that I should report? Thoughts? grendel|khan 18:53, 15 July 2006 (UTC)

An update: this application also uses generated manpages. However, when I list them in, Automake doesn't complain when I run it, even though they're not in the distribution tarball (despite the lack of  ) and are created and installed at build-time (thanks to being listed in  . If I list them in   and  , which I think is the semantically correct way of doing it, the manpages don't get created or installed at runtime.

The upshot of all this is that if Automake didn't complain about  not being present when it runs--something it only seems to care about for the TEXINFOS primary, not the MANS primary--everything would be fine here. grendel|khan 05:57, 16 July 2006 (UTC)