* doc/local.mk: Don't run src/bison, as it expects to find all its
files installed.  Instead, run tests/bison which is ready to run in
builddir.
---
 doc/local.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/local.mk b/doc/local.mk
index d12836e9..8959877d 100644
--- a/doc/local.mk
+++ b/doc/local.mk
@@ -88,8 +88,8 @@ EXTRA_DIST += $(top_srcdir)/doc/bison.help
 if ! CROSS_COMPILING
 MAINTAINERCLEANFILES += $(top_srcdir)/doc/bison.help
 $(top_srcdir)/doc/bison.help: src/bison$(EXEEXT)
-       $(AM_V_GEN)LC_ALL=C src/bison$(EXEEXT) --version >doc/bison.help.tmp
-       $(AM_V_at) LC_ALL=C src/bison$(EXEEXT) --help | \
+       $(AM_V_GEN)LC_ALL=C tests/bison --version >doc/bison.help.tmp
+       $(AM_V_at) LC_ALL=C tests/bison --help | \
 ## Avoid variations in the output depending on whether we are
 ## on a glibc system.
          sed '/translation bugs/d'  >>doc/bison.help.tmp
@@ -118,7 +118,7 @@ endif
 $(top_srcdir)/doc/bison.1: $(MAN_DEPS)
        $(AM_V_GEN)$(HELP2MAN)                  \
            --include=$(top_srcdir)/doc/bison.x \
-           [email protected] src/bison$(EXEEXT)
+           [email protected] tests/bison
        $(AM_V_at)if $(remove_time_stamp) $@ >[email protected] 2>/dev/null &&            
\
           $(remove_time_stamp) [email protected] | cmp [email protected] - >/dev/null 2>&1; then    
\
          touch $@;                                                             
\
-- 
2.20.1


Reply via email to