automake
[Top][All Lists]
Advanced

[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 "foo.info". Moreover using the .info suffix
> (eg. @setfilename foo.info) 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,
yet.

Thanks,
Ralf

--- snip ---
mkdir doc
cat >configure.ac <<\EOF
AC_INIT(a,1)
AM_INIT_AUTOMAKE(foreign)
AC_CONFIG_FILES(Makefile doc/Makefile)
AC_OUTPUT
EOF
cat >Makefile.am <<\EOF
SUBDIRS = doc
EOF
cat >doc/Makefile.am <<\EOF
info_TEXINFOS = foo.texi
EOF
cat >doc/foo.texi <<\EOF
@setfilename foo.info
EOF
autoreconf -vif
mkdir build
cd build
../configure -C
make
test -f ../doc/foo.info; 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/foo.info ../../doc/foo.info-[0-9] 
../../doc/foo.info-[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/foo.info ../../doc/foo.texi; \
        then \
          rc=0; \
          CDPATH="${ZSH_VERSION+.}:" && cd ../../doc; \
        else \
          rc=$?; \
          CDPATH="${ZSH_VERSION+.}:" && cd ../../doc && \
          $restore $backupdir/* `echo "./../../doc/foo.info" | 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]