.SUFFIXES:
.SUFFIXES: .texi .texinfo .info .dvi
+$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in
+ cd $(top_srcdir) && automake --gnits Makefile
+
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
+ cd $(top_builddir) \
+ && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
+
$(srcdir)/aclocal.m4: configure.in
cd $(srcdir) && aclocal
$(srcdir)/Makefile.in: Makefile.am configure.in
- cd $(srcdir) && automake --gnits Makefile
+ cd $(srcdir) && automake @ARGS@ Makefile
# For an explanation of the following Makefile rules, see node
# `Automatic Remaking' in GNU Autoconf documentation.
=~ s/(\W)/\\$1/g;
$xform = '-I' . $xform;
}
- $xform = 's/\@CONFIG_INCLUDE_SPEC\@/' . $xform . '/go';
+ $xform = 's/\@CONFIG_INCLUDE_SPEC\@/' . $xform . '/go;';
$output_vars .= &file_contents_with_transform ($xform,
'comp-vars');
$output_rules .= &file_contents ('compile');
{
local ($xname, $var, $lex_seen) = @_;
- die "programming error 1 in handle_lib_objects"
+ die "automake: programming error 1 in handle_lib_objects\n"
if ! &variable_defined ($var);
- die "programming error 2 in handle_lib_objects"
+ die "automake: programming error 2 in handle_lib_objects\n"
if $lex_seen && $var =~ /LIBADD/;
# We recognize certain things that are commonly put in LIBADD or
($xform = &basename ($config_header)) =~ s/(\W)/\\$1/g;
}
$xform = ('s/\@CONFIG\@/' . $xform . '/;'
- . 's/\@DIRS\@/' . join (' ', @tag_deps) . '/');
+ . 's/\@DIRS\@/' . join (' ', @tag_deps) . '/;');
$output_rules .= &file_contents_with_transform ($xform, 'tags');
$output_rules .= &file_contents ('tags-clean');
}
else
{
- $xform = 's/^CYGNUS.*$//';
+ $xform = 's/^CYGNUS.*$//;';
}
$output_rules .= &file_contents_with_transform ($xform, 'dejagnu');
local ($build_rx);
($build_rx = $top_builddir) =~ s/(\W)/\\$1/g;
$output_vars .= &file_contents_with_transform
- ('s/\@top_builddir\@/' . $build_rx . '/g',
+ ('s/\@top_builddir\@/' . $build_rx . '/g;',
'header-vars');
# Generate some useful variables when AC_CANONICAL_* used. FIXME:
local ($command, $basename) = @_;
local ($file) = $am_dir . '/' . $basename . '.am';
+ if ($command ne '' && substr ($command, -1) != '~')
+ {
+ die "automake: programming error in file_contents_with_transform\n";
+ }
+
open (FC_FILE, $file)
|| die "automake: installation error: cannot open \`$file'\n";
# Looks stupid?
if ($do_clean)
{
$output_rules .=
- &file_contents_with_transform ('s/\@DIR\@/' . $X . '/go',
+ &file_contents_with_transform ('s/\@DIR\@/' . $X . '/go;',
$clean_file);
push (@clean, $X . $primary);
if ($do_ltlibs && $X eq 'lib')
{
$output_rules .=
- &file_contents_with_transform ('s/\@DIR\@/' . $X . '/go',
+ &file_contents_with_transform ('s/\@DIR\@/' . $X . '/go;',
'ltlibs');
}
else