Sun Aug 4 12:52:43 1996 Tom Tromey <tromey@creche.cygnus.com>
+ * automake.in (handle_dist): Only generate `distdir' variable if
+ it doesn't already exist.
+
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.
* automake.in (handle_tests): Don't directly generate site.exp.
+Sun Jun 16 22:21:16 1996 Harlan Stenn <harlan@brown.pfcs.com>
+
+ * automake.in: Treat an initial `#' on a word in AUTOMAKE_OPTIONS
+ as a comment start. Add support for a dist-tarZ target.
+
Mon Jun 10 21:11:20 1996 Tom Tromey <tromey@creche.cygnus.com>
* texinfo.tex: New version.
foreach (split (' ', $contents{'AUTOMAKE_OPTIONS'}))
{
+ last if /^#/;
+
$options{$_} = 1;
if ($_ eq 'gnits' || $_ eq 'gnu' || $_ eq 'foreign')
{
}
elsif ($_ eq 'no-installman' || $_ eq 'ansi2knr'
|| $_ eq 'dist-shar' || $_ eq 'dist-zip'
- || $_ eq 'dejagnu' || $_ eq 'no-installinfo')
+ || $_ eq 'dist-tarZ' || $_ eq 'dejagnu'
+ || $_ eq 'no-installinfo')
{
# Explicitly recognize these.
}
# Put these things in rules section so it is easier for whoever
# reads Makefile.in.
- if ($relative_dir eq '.')
+ if (! &variable_defined ('distdir'))
{
- $output_rules .= "\n" . 'distdir = $(PACKAGE)-$(VERSION)' . "\n";
+ if ($relative_dir eq '.')
+ {
+ $output_rules .= "\n" . 'distdir = $(PACKAGE)-$(VERSION)' . "\n";
+ }
+ else
+ {
+ $output_rules .= ("\n"
+ . 'distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)'
+ . "\n");
+ }
}
- else
+ if ($relative_dir ne '.')
{
- $output_rules .= ("\nsubdir = " . $relative_dir . "\n"
- . 'distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)'
- . "\n");
+ $output_rules .= "\nsubdir = " . $relative_dir . "\n";
}
- # Generate 'dist' target, and maybe dist-shar / dist-zip.
+ # Generate 'dist' target, and maybe dist-shar / dist-zip / dist-tarZ.
if ($relative_dir eq '.')
{
# Rule to check whether a distribution is viable.
$output_rules .= 'zip -rq $(distdir).zip $(distdir)';
$output_rules .= "\n\t" . 'rm -rf $(distdir)' . "\n";
}
+
+ if (defined $options{'dist-tarZ'})
+ {
+ $output_rules .= 'dist-tarZ: distdir' . "\n\t";
+ $output_rules .= 'chmod -R a+r $(distdir)' . "\n\t";
+ $output_rules .= '$(TAR) choZf $(distdir).tar.Z $(distdir)';
+ $output_rules .= "\n\t" . 'rm -rf $(distdir)' . "\n";
+ }
}
# Generate distdir target.
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 tags.test
+error.test colon.test vtexi2.test tags.test comment.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 tags.test
+error.test colon.test vtexi2.test tags.test comment.test
EXTRA_DIST = defs $(TESTS)
mkinstalldirs = $(top_srcdir)/mkinstalldirs