automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

.texi.info rule


From: Bruce Korb
Subject: .texi.info rule
Date: Thu, 15 Oct 2020 08:29:06 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0

I edited in the "set -x ; " so I could see what actually happened when the scriptlet ran. Since the "top_srcdir" is ../../.., it goes into the source tree's "doc" directory and tries to make a backup directory. That doesn't work in "make distcheck". Also, "complexity.texi" is in the build directory, not in the source directory. This code is completely wrong to assume that it has to be in the source tree. Not all .texi files are of necessity hand edited.

.texi.info:
    set -x ; $(AM_V_MAKEINFO)restore=: && backupdir="$(am__leading_dot)am$$$$" && \
    am__cwd=`pwd` && $(am__cd) $(srcdir) && \
    rm -rf $$backupdir && mkdir $$backupdir && \
    if ($(MAKEINFO) --version) >/dev/null 2>&1; then \
      for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \
        if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \
      done; \
    else :; fi && \
    cd "$$am__cwd"; \
    if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
     -o $@ $<; \
    then \
      rc=0; \
      $(am__cd) $(srcdir); \
    else \
      rc=$$?; \
      $(am__cd) $(srcdir) && \
      $$restore $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \
    fi; \
    rm -rf $$backupdir; exit $$rc

rm -rf $backupdir; exit $rc
+ restore=:
+ backupdir=.am31931
++ pwd
+ am__cwd=/u/bkorb/tools/complexity-bld/complexity-1.11.2-2573-dirty/_build/sub/doc
+ CDPATH=:
+ cd ../../../doc
+ rm -rf .am31931
+ mkdir .am31931
mkdir: cannot create directory ‘.am31931’: Permission denied
+ /bin/sh /u/bkorb/tools/complexity-bld/complexity-1.11.2-2573-dirty/build-aux/missing makeinfo -I ../../../doc -o ../../../doc/complexity.info ../../../doc/complexity.texi
could not open ../../../doc/complexity.texi: No such file or directory
+ rc=1
+ CDPATH=:
+ cd ../../../doc
/bin/sh: line 16: cd: ../../../doc: No such file or directory
+ rm -rf .am31931
+ exit 1
make: *** [Makefile:983: ../../../doc/complexity.info] Error 1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]