# was once done when the (now removed) 'cygnus' option was
# given. See automake bug#11034 for more discussion.
my $insrc = 1;
+ my $soutdir = '$(srcdir)/' . $outdir;
if (option 'info-in-builddir')
{
EOF
}
- $outdir = '$(srcdir)/' . $outdir if $insrc;
+ $outdir = $soutdir if $insrc;
# If user specified file_TEXINFOS, then use that as explicit
# dependency list.
@texi_deps = ();
- push (@texi_deps, "$outdir$vtexi") if $vtexi;
+ push (@texi_deps, "${soutdir}${vtexi}") if $vtexi;
my $canonical = canonicalize ($infobase);
if (var ($canonical . "_TEXINFOS"))
new Automake::Location,
TEXI => $texi,
VTI => $vti,
- STAMPVTI => "${outdir}stamp-$vti",
- VTEXI => "$outdir$vtexi",
+ STAMPVTI => "${soutdir}stamp-$vti",
+ VTEXI => "$soutdir$vtexi",
MDDIR => $conf_dir,
DIRSTAMP => $dirstamp);
}
required='makeinfo tex texi2dvi'
. test-init.sh
+if useless_vpath_rebuild; then
+ skip_ "$MAKE has brittle VPATH support"
+fi
+
echo AC_OUTPUT >> configure.ac
cat > Makefile.am << 'END'
test -f foo.info
test -f subdir/bar.info
test -f mu.info
-test -f stamp-vti
-test -f version.texi
+test -f ../stamp-vti
+test -f ../version.texi
test ! -e ../foo.info
test ! -e ../subdir/bar.info
test ! -e ../mu.info
-test ! -e ../stamp-vti
-test ! -e ../version.texi
$MAKE clean
test -f foo.info
test -f subdir/bar.info
test ! -e mu.info
-test -f stamp-vti
-test -f version.texi
+test -f ../stamp-vti
+test -f ../version.texi
# Make sure stamp-vti is older that version.texi.
# (A common situation in a real tree).
$sleep
-touch stamp-vti
+touch ../stamp-vti
$MAKE distcheck
# Being distributed, this file should have been rebuilt.
test -f mu.info
$MAKE distclean
-test -f stamp-vti
-test -f version.texi
+test -f ../stamp-vti
+test -f ../version.texi
test -f foo.info
test -f subdir/bar.info
test ! -e mu.info
../configure
$MAKE maintainer-clean
+test ! -e ../stamp-vti
+test ! -e ../version.texi
test ! -e stamp-vti
test ! -e version.texi
test ! -e foo.info