'make distcheck' and info / dir file

A new information guide has been added to my project and the necessary Makefile.am spell has been added:

 info_TEXINFOS = manual.texi 

Now, when I run make distcheck , I get an error when checking that make uninstall successfully deletes all the files because the $(infodir)/dir file is not deleted correctly.

 ERROR: files left after uninstall: ./share/info/dir make[1]: *** [distuninstallcheck] Error 1 

I searched the web for Automake and Texinfo manuals for a solution, but it came in order. What is the idiomatic way to fix this and run make distcheck again?

+4
source share
1 answer

distuninstallcheck does not (or should not) fail when only one file remains after uninstall , precisely because of the dir file. It should fail only when several files remain.

Did you edit the output? If you have not done so, this is an Automake error that you should report. If you have done this, you do not need to worry about this dir file and just fix the problem with the other files that are listed.

The fact that Automake unconditionally ignores a single file may hide the error if you do not use the TEXINFO manuals. This error will appear when adding a guide. It is sad.

+3
source

All Articles