diff options
author | Roland Pesch <pesch@cygnus> | 1991-11-15 23:34:35 +0000 |
---|---|---|
committer | Roland Pesch <pesch@cygnus> | 1991-11-15 23:34:35 +0000 |
commit | c83497f5451066064b12eff6acc2fb648ccebdb6 (patch) | |
tree | b6f99193549d229e8a89b1c6c06ba47e4b126f0c /binutils | |
parent | 58050209857ca9ef632254dd05cae407cf7f7a0d (diff) | |
download | fsf-binutils-gdb-c83497f5451066064b12eff6acc2fb648ccebdb6.zip fsf-binutils-gdb-c83497f5451066064b12eff6acc2fb648ccebdb6.tar.gz fsf-binutils-gdb-c83497f5451066064b12eff6acc2fb648ccebdb6.tar.bz2 |
.Sanitize: reflect someone's apocopation of binutils.texi[nfo] name
Makefile.in: improve texi2roff workarounds
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/.Sanitize | 8 | ||||
-rw-r--r-- | binutils/Makefile.in | 46 |
2 files changed, 46 insertions, 8 deletions
diff --git a/binutils/.Sanitize b/binutils/.Sanitize index 9019028..e65e432 100644 --- a/binutils/.Sanitize +++ b/binutils/.Sanitize @@ -41,7 +41,7 @@ strip.1 is-ranlib.c not-ranlib.c maybe-ranlib.c -binutils.texinfo +binutils.texi bucomm.c configure.in copy.c @@ -68,7 +68,11 @@ echo Done in `pwd`. # # # $Log$ -# Revision 1.9 1991/11/06 09:06:02 sac +# Revision 1.10 1991/11/15 23:34:33 pesch +# .Sanitize: reflect someone's apocopation of binutils.texi[nfo] name +# Makefile.in: improve texi2roff workarounds +# +# Revision 1.9 1991/11/06 09:06:02 sac # Added nm.1, objdump.1, ranlib.1, size.1 and strip.1 # # Revision 1.8 1991/11/05 20:53:19 sac diff --git a/binutils/Makefile.in b/binutils/Makefile.in index 54d8333..969792a 100644 --- a/binutils/Makefile.in +++ b/binutils/Makefile.in @@ -26,6 +26,7 @@ idestdir = $(ddestdir) SHELL = /bin/sh MAKEINFO=makeinfo +TEXI2ROFF=texi2roff # Distribution version VERSION=1.91 @@ -105,7 +106,9 @@ BFD = $(LIBDIR)/libbfd.a # ## The rules -all: $(ADDL_LIBS) $(PROGS) binutils.info +all: $(ADDL_LIBS) $(PROGS) + +all-info: binutils.info #$(BFD):$(LIBDIR)/../common/*.c # (cd $(LIBDIR); make) @@ -186,22 +189,44 @@ binutils.info: $(srcdir)/binutils.texi $(MAKEINFO) -o binutils.info $(srcdir)/binutils.texi # different targets for -ms, -mm, -me -# (we don't use a variable because we don't trust all makes to handle -# a var in the target name right). +# Try to use a recent texi2roff. v2 was put on prep in jan91. +# If you want an index, see texi2roff doc for postprocessing +# and add -i to texi2roff invocations below. +# Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete +# correspondint -e lines when later texi2roff's are current) +# + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs. +# + @c's deleted explicitly because texi2roff sees texinfo commands in them +# + @ (that's at-BLANK) not recognized by texi2roff, turned into blank +# + @alphaenumerate is ridiculously new, turned into @enumerate + # roff output (-ms) binutils.ms: $(srcdir)/binutils.texi sed -e '/\\input texinfo/d' \ -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \ + -e '/^@ifinfo/,/^@end ifinfo/d' \ + -e '/^@c/d' \ -e 's/{.*,,/{/' \ + -e 's/@ / /g' \ + -e 's/^@alphaenumerate/@enumerate/g' \ + -e 's/^@end alphaenumerate/@end enumerate/g' \ $(srcdir)/binutils.texi | \ - texi2roff -ms >binutils.ms + texi2roff -ms | \ + sed -e 's/---/\\(em/g' \ + >binutils.ms # roff output (-mm) +# '@noindent's removed due to texi2roff-2 mm bug; if yours is newer, +# try leaving them in binutils.mm: $(srcdir)/binutils.texi sed -e '/\\input texinfo/d' \ -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \ + -e '/^@ifinfo/,/^@end ifinfo/d' \ + -e '/^@c/d' \ -e 's/{.*,,/{/' \ -e '/@noindent/d' \ + -e 's/@ / /g' \ + -e 's/^@alphaenumerate/@enumerate/g' \ + -e 's/^@end alphaenumerate/@end enumerate/g' \ $(srcdir)/binutils.texi | \ texi2roff -mm | \ sed -e 's/---/\\(em/g' \ @@ -211,9 +236,16 @@ binutils.mm: $(srcdir)/binutils.texi binutils.me: $(srcdir)/binutils.texi sed -e '/\\input texinfo/d' \ -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \ + -e '/^@ifinfo/,/^@end ifinfo/d' \ + -e '/^@c/d' \ -e 's/{.*,,/{/' \ + -e 's/@ / /g' \ + -e 's/^@alphaenumerate/@enumerate/g' \ + -e 's/^@end alphaenumerate/@end enumerate/g' \ $(srcdir)/binutils.texi | \ - texi2roff -me >binutils.me + texi2roff -me | \ + sed -e 's/---/\\(em/g' \ + >binutils.me ###################################################################### @@ -229,7 +261,7 @@ TAGS: force realclean: clean -rm -f $(STAGESTUFF) TAGS -install: $(PROGS) +install: all for i in $(PROGS) ; do \ (cp $$i $(bindir)/$$i.new \ && mv -f $(bindir)/$$i.new $(bindir)/$$i) \ @@ -240,6 +272,8 @@ install: $(PROGS) && mv -f $(mandir)/man1/$$i.new $(mandir)/man1/$$i) \ || exit 1 ; \ done + +install-info: all-info for i in *.info* ; do \ (cp $$i $(idestdir)/info/$$i.new \ && mv -f $(idestdir)/info/$$i.new $(idestdir)/info/$$i) \ |