aboutsummaryrefslogtreecommitdiff
path: root/gas/doc
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1993-03-26 13:16:57 +0000
committerKen Raeburn <raeburn@cygnus>1993-03-26 13:16:57 +0000
commitfcd9506c5df575a38894ed2641af1a37eb6669f7 (patch)
treefcd57a2d9f03ac8c02e80ac72c3f208343cc598c /gas/doc
parent63305a735bbb723ac18ba396e5a3c6b4a0089a62 (diff)
downloadgdb-fcd9506c5df575a38894ed2641af1a37eb6669f7.zip
gdb-fcd9506c5df575a38894ed2641af1a37eb6669f7.tar.gz
gdb-fcd9506c5df575a38894ed2641af1a37eb6669f7.tar.bz2
If $(srcdir) isn't ., create links to all predefined as-*.texinfo files that
are found in $(srcdir).
Diffstat (limited to 'gas/doc')
-rw-r--r--gas/doc/configure.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/gas/doc/configure.in b/gas/doc/configure.in
index e8b79a6..69833cb 100644
--- a/gas/doc/configure.in
+++ b/gas/doc/configure.in
@@ -34,4 +34,18 @@ srcname="gas doc"
# per-target:
+# Make this link, so the Makefile's as-${CONFIG} references can all work,
+# while we only keep as-all.texinfo in the source tree.
+
+cfgs="all a29k a29k-coff gen h8 z8000 i80386 m680x0 sparc vax vintage"
+files=""
+if [ $srcdir != "." ] && [ `cd $srcdir ; pwd` != `pwd` ]; then
+ for cfg in $cfgs ; do
+ if [ -r $srcdir/as-$cfg.texinfo ]; then
+ files="$files as-$cfg.texinfo"
+ fi
+ done
+fi
+links="$files"
+
# end of gas/doc/configure.in