From afe3aa730cd7fddc8f7ab296c91da1e659cda80c Mon Sep 17 00:00:00 2001 From: "K. Richard Pixley" Date: Thu, 14 Nov 1991 00:20:13 +0000 Subject: [PATCH] build and install info --- ld/Makefile.in | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ld/Makefile.in b/ld/Makefile.in index fa6d4357ad6..66a2cdb45f9 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -166,7 +166,7 @@ LINTSOURCES= $(LDCSOURCES) $(BFDSOURCES) $(GENERATED_SOURCES) STAGESTUFF = *.x *.x[ru] *.sc[ru] $(GENERATED_SOURCES) $(GENERATED_HEADERS) $(OFILES) $(LD_PROG) mkscript -all: Makefile $(LD_PROG) +all: Makefile $(LD_PROG) ld.info ldgram.h ldgram.c: ldgram.y $(BISON) $(BISONFLAGS) -d $(VPATH)/ldgram.y -o ldgram.c @@ -255,7 +255,7 @@ ld.dvi: $(srcdir)/ld.texinfo # info file for online browsing ld.info: $(srcdir)/ld.texinfo - makeinfo -o ld.info $(srcdir)/ld.texinfo + - $(MAKEINFO) -o ld.info $(srcdir)/ld.texinfo #separate targets for "ms", "me", and "mm" forms of roff doc # (we don't use a variable because we don't trust all makes to handle @@ -403,6 +403,13 @@ objdump:objdump.c install: $(LD_PROG) $(INSTALL_PROGRAM) ld.new $(ddestdir)/bin/ld $(INSTALL_PROGRAM) ld.new $(gcclibdir)/ld + for i in ld.info* ; do \ + echo Installing $$i... ; \ + (cp $$i $(idestdir)/info/$$i.new \ + && mv -f $(idestdir)/info/$$i.new $(idestdir)/info/$$i) \ + || exit 1 ; \ + done + # Something like the following might make sense for install, but doesn't work # - it is too fragile, depending on a gcc binary int the right place. # Perhaps using gcc/version.c might work?