diff options
author | Alexandre Duret-Lutz <adl@gnu.org> | 2003-11-08 13:01:13 +0000 |
---|---|---|
committer | Alexandre Duret-Lutz <adl@gnu.org> | 2003-11-08 13:01:13 +0000 |
commit | 9bfd1b3f4f7fb0ad7ba169a5742edeba77f84ff6 (patch) | |
tree | 6ab2331e575db111189e2ca873d52941abdab8c5 /lib/am/texinfos.am | |
parent | 05fac00979a763296aa2d0c01c2e08837cee0ac5 (diff) | |
download | automake-9bfd1b3f4f7fb0ad7ba169a5742edeba77f84ff6.tar.gz |
* lib/am/texibuild.am (%DEST_PREFIX%%DEST_SUFFIX%): Rename as ...
(%DEST_INFO_PREFIX%%DEST_SUFFIX%): ... this, and honor ?INSRC?
to select $(srcdir) or `.' builds.
(INFO_DEPS): Define here.
* lib/am/texinfos.am (dist-info): Strip filename starting with
"$(srcdir)/".
* automake.in (output_texinfo_build_rules): Take a new argument
$insrc, and adjust substitutions in 'texibuild'.
(handle_texinfo_helper): Compute a regex of all user-cleaned
files, and use this to select whether to build .info files in `.'
or $(srcdir). Give an account of the $(srcdir) vs `.' debacle.
Alway build the version.texi and stamp files in $(srcdir). Do not
define INFO_DEPS.
* tests/Makefile.am (TESTS): Add txinfo23.test, txinfo24.test,
and txinfo25.test.
* tests/txinfo23.test, tests/txinfo24.test, tests/txinfo25.test:
New files.
* tests/txinfo13.test, tests/txinfo16.test, tests/txinfo3.test,
tests/vtexi.test: Adjust to new rules.
Diffstat (limited to 'lib/am/texinfos.am')
-rw-r--r-- | lib/am/texinfos.am | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/am/texinfos.am b/lib/am/texinfos.am index a6cc47337..95ce1e9cc 100644 --- a/lib/am/texinfos.am +++ b/lib/am/texinfos.am @@ -222,8 +222,12 @@ endif ! %?LOCAL-TEXIS% if %?LOCAL-TEXIS% .PHONY: dist-info dist-info: $(INFO_DEPS) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ list='$(INFO_DEPS)'; \ for base in $$list; do \ + case $$base in \ + $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \ + esac; \ if test -f $$base; then d=.; else d=$(srcdir); fi; \ for file in $$d/$$base*; do \ ## Strip leading '$$d/'. |