From: Roland Pesch Date: Fri, 11 Oct 1991 22:42:57 +0000 (+0000) Subject: Support for "ld.ms", "ld-index.ms" ROFF-style doc targets. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8073190bd29f730e25ed8cedcdfb8ba818dd835b;p=binutils-gdb.git Support for "ld.ms", "ld-index.ms" ROFF-style doc targets. --- diff --git a/ld/Makefile.in b/ld/Makefile.in index 2b935d6b04e..168bc098132 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -28,8 +28,17 @@ INCLUDE = $(srcdir)/../include INCLUDES = -I. -I$(srcdir) -I$(INCLUDE) DEBUG = -g +# Where to find texinfo.tex to format docn with TeX TEXIDIR = $(srcdir)/../texinfo/fsf +# Whether to get roff to put indexing entries on stdout +#TEXI2OPT = +# You neeed this to generate ld-index.ms +TEXI2OPT = -i + +# Which roff program to use to generate index for texi2roff'd doc +ROFF = groff + BISON = bison BISONFLAGS = -v @@ -187,14 +196,36 @@ ld2: ld1 ld3: ld2 $(HOSTING_EMU); ./ld2 -o ld3 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) +###################################################################### +# DOCUMENTATION TARGETS +# TeX output ld.dvi: ld.texinfo TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex ld.texinfo texindex ld.?? TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex ld.texinfo +# info file for online browsing ld.info: ld.texinfo makeinfo ld.texinfo +#edit instances of "ms" to "me" or "mm" to suit your preferences. +# (we don't use a variable because we don't trust all makes to handle +# a var in the target name right). +# roff output (-ms) +ld.ms: ld.texinfo + sed -e '/\\input texinfo/d' \ + -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \ + ld.texinfo | \ + texi2roff $(TEXI2OPT) -ms >ld.ms + +# index for roff output +ld-index.ms: ld.ms + $(ROFF) -ms ld.ms 2>&1 1>/dev/null | \ + sed -e '/: warning:/d' | \ + texi2index >ld-index.ms + +###################################################################### + mkscript: $(srcdir)/mkscript.c $(CC) $(CFLAGS) $(LDFLAGS) -o mkscript $(srcdir)/mkscript.c $(LOADLIBES)