build: install the Info and Html manuals even when 'makeinfo' is missing

If the system on which nano is configured does not have the 'makeinfo'
program installed, the prebuilt and packaged nano.info and nano.html
should nevertheless be installed.

Also, the TEXINFOS primary has built-in rules for generating HTML files
from the texinfo sources, so an explicit rule is not needed.

This indirectly addresses https://savannah.gnu.org/bugs/?49969.
master
Benno Schulenberg 2017-01-06 19:46:49 +01:00
parent fa56310454
commit 54e6fe2b4a
2 changed files with 2 additions and 8 deletions

View File

@ -733,10 +733,6 @@ else
fi fi
AM_CONDITIONAL(GROFF_HTML, test x$groff_html_support = xyes) AM_CONDITIONAL(GROFF_HTML, test x$groff_html_support = xyes)
# Check for the availability of makeinfo.
AC_CHECK_PROG(haveit, makeinfo, yes, no)
AM_CONDITIONAL(HAVE_MAKEINFO, test x$haveit = xyes)
# Check whether this is a git repository. # Check whether this is a git repository.
AC_MSG_CHECKING([whether building from git]) AC_MSG_CHECKING([whether building from git])
if test -d .git ; then if test -d .git ; then

View File

@ -25,11 +25,9 @@ endif
info_TEXINFOS = nano.texi info_TEXINFOS = nano.texi
if HAVE_MAKEINFO
BUILT_SOURCES += nano.html BUILT_SOURCES += nano.html
endif dist_html_DATA += nano.html
nano.html: nano.texi AM_MAKEINFOHTMLFLAGS = --no-split
makeinfo --no-split --html < $< > $@
EXTRA_DIST = $(BUILT_SOURCES) $(info_TEXINFOS) EXTRA_DIST = $(BUILT_SOURCES) $(info_TEXINFOS)