Mon Feb 23 13:38:56 1998 Tom Tromey <tromey@cygnus.com>
+ * texinfos.am (.txi.info, .txi.dvi, .txi): New rules.
+ * automake.in (handle_texinfo): Recognize .txi files. From Karl
+ Berry.
+
* automake.in (handle_single_transform_list): $objpat now a
parameter. Set $objpat when suffix rule found.
foreach $info_cursor (@texis)
{
- ($infobase = $info_cursor) =~ s/\.texi(nfo)?$//;
+ # FIXME: This is mildly hacky, since it recognizes "txinfo".
+ # I don't feel like making it right.
+ ($infobase = $info_cursor) =~ s/\.te?xi(nfo)?$//;
# If 'version.texi' is referenced by input file, then include
# automatic versioning capability.
$output_rules .= "clean-info: mostlyclean-aminfo\n";
}
- push (@suffixes, '.texi', '.texinfo', '.info', '.dvi', '.ps');
+ push (@suffixes, '.texi', '.texinfo', '.txi', '.info', '.dvi', '.ps');
if (! defined $options{'no-installinfo'})
{
## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
+## Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
+## FIXME: should repeat all the stuff in this file. Instead should
+## generate the contents in a smarter way.
+
.texi.info:
## We want to force the .info file to be built in srcdir. This is
## probably the simplest way. However, at Cygnus .info files are
## if it is in srcdir.
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
+.txi.info:
+## We want to force the .info file to be built in srcdir. This is
+## probably the simplest way. However, at Cygnus .info files are
+## always put into the build directory. So at runtime we select which
+## rule to use.
+## Note that we also remove the possible output files before running
+## makeinfo. Otherwise, if the texinfo file shrinks (or if you start
+## using --no-split), you'll be left with some dead info files lying
+## around -- dead files which will end up in the distribution.
+NOTCYGNUS @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
+NOTCYGNUS cd $(srcdir) \
+NOTCYGNUS && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
+CYGNUS @rm -f $@ $@-[0-9] $@-[0-9][0-9]
+CYGNUS $(MAKEINFO) -I $(srcdir) $<
+
+.txi.dvi:
+ TEXINPUTS=@TEXINFODIR@:$$TEXINPUTS \
+## Must set MAKEINFO like this so that version.texi will be found even
+## if it is in srcdir.
+ MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
+
+.txi:
+## We want to force the .info file to be built in srcdir. This is
+## probably the simplest way. However, at Cygnus .info files are
+## always put into the build directory. So at runtime we select which
+## rule to use.
+## Note that we also remove the possible output files before running
+## makeinfo. Otherwise, if the texinfo file shrinks (or if you start
+## using --no-split), you'll be left with some dead info files lying
+## around -- dead files which will end up in the distribution.
+NOTCYGNUS @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
+NOTCYGNUS cd $(srcdir) \
+NOTCYGNUS && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
+CYGNUS @rm -f $@ $@-[0-9] $@-[0-9][0-9]
+CYGNUS $(MAKEINFO) -I $(srcdir) $<
+
## The way to make PostScript, for those who want it.
DVIPS = dvips
.dvi.ps:
+Mon Feb 23 16:20:49 1998 Tom Tromey <tromey@cygnus.com>
+
+ * texinfo6.test: New file.
+
Mon Feb 16 00:08:58 1998 Tom Tromey <tromey@cygnus.com>
* aclocali.test: New file.
version2.test conf2.test cond.test cond2.test xsource.test \
libobj6.test depend3.test output5.test ammissing.test install.test \
libobj7.test objc.test cond3.test cxxcpp.test aclocal.test alpha.test \
-whoami.test unused.test condman.test texinfo5.test aclocali.test
+whoami.test unused.test condman.test texinfo5.test aclocali.test \
+texinfo6.test
EXTRA_DIST = defs $(TESTS)
version2.test conf2.test cond.test cond2.test xsource.test \
libobj6.test depend3.test output5.test ammissing.test install.test \
libobj7.test objc.test cond3.test cxxcpp.test aclocal.test alpha.test \
-whoami.test unused.test condman.test texinfo5.test aclocali.test
+whoami.test unused.test condman.test texinfo5.test aclocali.test \
+texinfo6.test
EXTRA_DIST = defs $(TESTS)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
--- /dev/null
+#! /bin/sh
+
+# Test to make sure `.txi' extension works.
+. $srcdir/defs || exit 1
+
+cat > Makefile.am << 'END'
+info_TEXINFOS = foo.txi
+END
+
+echo '@setfilename foo.info' > foo.txi
+: > texinfo.tex
+
+$AUTOMAKE || exit 1
+
+fgrep '.txi.info' Makefile.in
## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
+## Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
+## FIXME: should repeat all the stuff in this file. Instead should
+## generate the contents in a smarter way.
+
.texi.info:
## We want to force the .info file to be built in srcdir. This is
## probably the simplest way. However, at Cygnus .info files are
## if it is in srcdir.
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
+.txi.info:
+## We want to force the .info file to be built in srcdir. This is
+## probably the simplest way. However, at Cygnus .info files are
+## always put into the build directory. So at runtime we select which
+## rule to use.
+## Note that we also remove the possible output files before running
+## makeinfo. Otherwise, if the texinfo file shrinks (or if you start
+## using --no-split), you'll be left with some dead info files lying
+## around -- dead files which will end up in the distribution.
+NOTCYGNUS @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
+NOTCYGNUS cd $(srcdir) \
+NOTCYGNUS && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
+CYGNUS @rm -f $@ $@-[0-9] $@-[0-9][0-9]
+CYGNUS $(MAKEINFO) -I $(srcdir) $<
+
+.txi.dvi:
+ TEXINPUTS=@TEXINFODIR@:$$TEXINPUTS \
+## Must set MAKEINFO like this so that version.texi will be found even
+## if it is in srcdir.
+ MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
+
+.txi:
+## We want to force the .info file to be built in srcdir. This is
+## probably the simplest way. However, at Cygnus .info files are
+## always put into the build directory. So at runtime we select which
+## rule to use.
+## Note that we also remove the possible output files before running
+## makeinfo. Otherwise, if the texinfo file shrinks (or if you start
+## using --no-split), you'll be left with some dead info files lying
+## around -- dead files which will end up in the distribution.
+NOTCYGNUS @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
+NOTCYGNUS cd $(srcdir) \
+NOTCYGNUS && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
+CYGNUS @rm -f $@ $@-[0-9] $@-[0-9][0-9]
+CYGNUS $(MAKEINFO) -I $(srcdir) $<
+
## The way to make PostScript, for those who want it.
DVIPS = dvips
.dvi.ps: