diff options
author | Roland Pesch <pesch@cygnus> | 1991-10-11 22:42:57 +0000 |
---|---|---|
committer | Roland Pesch <pesch@cygnus> | 1991-10-11 22:42:57 +0000 |
commit | 8073190bd29f730e25ed8cedcdfb8ba818dd835b (patch) | |
tree | b26ea03774dcd244ab307935ebf0edda62981d69 /ld/Makefile.in | |
parent | 6719c75b99c88ea91807a3b6bf134bcac4c24af0 (diff) | |
download | gdb-8073190bd29f730e25ed8cedcdfb8ba818dd835b.zip gdb-8073190bd29f730e25ed8cedcdfb8ba818dd835b.tar.gz gdb-8073190bd29f730e25ed8cedcdfb8ba818dd835b.tar.bz2 |
Support for "ld.ms", "ld-index.ms" ROFF-style doc targets.
Diffstat (limited to 'ld/Makefile.in')
-rw-r--r-- | ld/Makefile.in | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ld/Makefile.in b/ld/Makefile.in index 2b935d6..168bc09 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) |