Sun Aug 4 12:52:43 1996 Tom Tromey <tromey@creche.cygnus.com>
+ Fix for bug reported by Harlan Stenn. Test tags.test.
+ * automake.in (initialize_per_input): Define dir_holds_sources.
+ (handle_tags): Check dir_holds_headers.
+ (handle_headers): Set dir_holds_headers.
+
* automake.in (handle_texinfo): Generate "version.texi" dependency
for .dvi file. Bug reported by Glenn Amerine. Test vtexi2.test.
Andreas Schwab <schwab@lamothe.informatik.uni-dortmund.de>
Dieter Baron <dillo@stieltjes.smc.univie.ac.at>
François Pinard <pinard@iro.umontreal.ca>
+Glenn Amerine <glenn@pie.mhsc.org>
Gord Matzigkeit <gord@enci.ucalgary.ca>
Greg A. Woods <woods@most.weird.com>
Harlan Stenn <Harlan.Stenn@pfcs.com>
-Harlan Stenn <Harlan.Stenn@pfcs.com>
Henrik Frystyk Nielsen <frystyk@w3.org>
Jason Molenda <crash@cygnus.co.jp>
Jerome Santini <santini@chambord.univ-orleans.fr>
push (@phony, 'tags-recursive');
$tagging = 1;
}
- elsif ($dir_holds_sources || &variable_defined ('ETAGS_ARGS'))
+ elsif ($dir_holds_sources
+ || $dir_holds_headers
+ || &variable_defined ('ETAGS_ARGS'))
{
$output_rules .= &file_contents ('tags-subd');
$tagging = 1;
# Handle C headers.
sub handle_headers
{
- &am_install_var ('header', 'HEADERS', 'include',
- 'oldinclude', 'pkginclude',
- 'noinst', 'check');
+ $dir_holds_headers = &am_install_var ('header', 'HEADERS', 'include',
+ 'oldinclude', 'pkginclude',
+ 'noinst', 'check');
}
sub handle_gettext
# the function get_object_extension).
$dir_holds_sources = '';
+ # TRUE if current directory holds any headers.
+ $dir_holds_headers = 0;
+
# TRUE if install targets should work recursively.
$recursive_install = 0;
Sun Aug 4 12:47:34 1996 Tom Tromey <tromey@creche.cygnus.com>
+ * tags.test: New file.
+
* vtexi2.test: New file.
* colon.test: New file.
canon3.test mdate2.test subdir.test backsl.test package.test number.test \
insh2.test outdir.test fpinstall.test fpinst2.test texinfo.test dejagnu.test \
yacc.test mkinstall2.test texinfo2.test ansi.test depacl.test depacl2.test \
-error.test colon.test vtexi2.test
+error.test colon.test vtexi2.test tags.test
EXTRA_DIST = defs $(TESTS)
canon3.test mdate2.test subdir.test backsl.test package.test number.test \
insh2.test outdir.test fpinstall.test fpinst2.test texinfo.test dejagnu.test \
yacc.test mkinstall2.test texinfo2.test ansi.test depacl.test depacl2.test \
-error.test colon.test vtexi2.test
+error.test colon.test vtexi2.test tags.test
EXTRA_DIST = defs $(TESTS)
mkinstalldirs = $(top_srcdir)/mkinstalldirs
--- /dev/null
+#! /bin/sh
+
+# Test for bug reported by Harlan Stenn: the tags target doesn't work
+# when there are only headers in a directory.
+
+. $srcdir/defs || exit 1
+
+cat > Makefile.am << 'END'
+noinst_HEADERS = iguana.h
+END
+
+: > iguana.h
+
+$AUTOMAKE || exit 1
+
+grep '^ID:' Makefile.in
--- /dev/null
+#! /bin/sh
+
+# Test for bug reported by Glenn Amerine:
+# When automake sees version.texi is being included by a texi file,
+# version.texi gets listed as a dependency for the .info file but
+# not the .dvi file.
+
+. $srcdir/defs || exit 1
+
+cat > Makefile.am << 'END'
+info_TEXINFOS = zardoz.texi
+END
+
+cat > zardoz.texi << 'END'
+@include version.texi
+END
+
+# Required when using Texinfo.
+: > mdate-sh
+: > texinfo.tex
+
+$AUTOMAKE || exit 1
+
+grep '^zardoz\.dvi:' Makefile.in