[Top][All Lists]

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

Re: automake + .info files help needed

From: Ralf Wildenhues
Subject: Re: automake + .info files help needed
Date: Thu, 13 Nov 2008 20:06:29 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hello Matěj,

* Matěj Týč wrote on Sun, Nov 02, 2008 at 07:30:07PM CET:
> However, I have made an important discovery: My .texi file contains
> @setfilename command. If the command argument has .info suffix, no .info
> file is built at all (this is the reported problem). However, if it does
> not have a suffix (eg. @setfilename foo), an info file is built, but its
> name is "foo" instead of "". Moreover using the .info suffix
> (eg. @setfilename is encouraged by texinfo manual.

Which automake version are you using?
Which system are you on (maybe w32 and there are line ending issues)?

> When I type 'make clean' in the doc/ directory, I can see that expected
> result filenames are different from the real ones (if I type 'make dvi',
> I get "Foo.dvi" as a result since the source filename was "Foo.texi".
> However, automake thinks that the result is going to be "foo.dvi" since
> this is the argument supplied to @setfilename inside the texinof source
> file. So typing 'make clean' cleans all intermediate files, but not the
> results). Automake deffinitely doesn't handle .texi files properly at
> this moment...

I am not able to reproduce the error (with recent Automake).  Here's an
example setup for you to try (in an otherwise empty directory).  It
would be nice if you could modify it so that it fails.  If it fails,
please post all output that it produces.

Or post a link to your .texi file.  I don't know where the problem lies,


--- snip ---
mkdir doc
cat > <<\EOF
AC_CONFIG_FILES(Makefile doc/Makefile)
cat > <<\EOF
cat >doc/ <<\EOF
info_TEXINFOS = foo.texi
cat >doc/foo.texi <<\EOF
autoreconf -vif
mkdir build
cd build
../configure -C
test -f ../doc/; echo $?
--- snip ---

Here, the 'make' command produces this output:

Making all in doc
make[1]: Entering directory `/tmp/foo/build/doc'
restore=: && backupdir=".am$$" && \
        am__cwd=`pwd` && CDPATH="${ZSH_VERSION+.}:" && cd ../../doc && \
        rm -rf $backupdir && mkdir $backupdir && \
        if (/bin/sh /tmp/foo/missing --run makeinfo --version) >/dev/null 2>&1; 
then \
          for f in ../../doc/ ../../doc/[0-9] 
../../doc/[0-9][0-9] ../../doc/foo.i[0-9] ../../doc/foo.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 /bin/sh /tmp/foo/missing --run makeinfo   -I ../../doc \
         -o ../../doc/ ../../doc/foo.texi; \
        then \
          rc=0; \
          CDPATH="${ZSH_VERSION+.}:" && cd ../../doc; \
        else \
          rc=$?; \
          CDPATH="${ZSH_VERSION+.}:" && cd ../../doc && \
          $restore $backupdir/* `echo "./../../doc/" | sed 
's|[^/]*$||'`; \
        fi; \
        rm -rf $backupdir; exit $rc
make[1]: Leaving directory `/tmp/foo/build/doc'

reply via email to

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