From: K. Richard Pixley Date: Thu, 14 Nov 1991 08:54:39 +0000 (+0000) Subject: added all-info and install-info targets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e92ee46965422f9014f97d4c22fd5adabbb38316;p=binutils-gdb.git added all-info and install-info targets --- diff --git a/gdb/Makefile.in b/gdb/Makefile.in index aadb3d1f4b5..11f577bd6c5 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -279,6 +279,10 @@ YYOBJ = c-exp.tab.o m2-exp.tab.o all: gdb $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)" +all-info: force + $(MAKE) subdir_do DO=all-info "DODIRS=$(SUBDIRS)" +install-info: force + $(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)" gdb.z:gdb.1 nroff -man gdb.1 | col -b > gdb.t diff --git a/gdb/doc/Makefile.in b/gdb/doc/Makefile.in index 755109caddd..79831a6b3af 100644 --- a/gdb/doc/Makefile.in +++ b/gdb/doc/Makefile.in @@ -33,23 +33,27 @@ gdbdir = .. M4=gm4 # where to find texinfo; GDB dist should include a recent one -TEXIDIR=${gdbdir}/../texinfo/fsf +TEXIDIR=$(srcdir)/${gdbdir}/../texinfo/fsf # where to find makeinfo, preferably one designed for texinfo-2 MAKEINFO=makeinfo # Where is the source dir for the READLINE library? Traditionally in .. or . # (For the binary library built from it, we use ${READLINE_DIR}${subdir}.) -READLINE_DIR = ${gdbdir}/../readline +READLINE_DIR = $(srcdir)/${gdbdir}/../readline # Main GDB manual's source files SFILES_DOCDIR = \ - gdb.texinfo pretex.m4 none.m4 all.m4 gdbinv-m.m4 gdbinv-s.m4 gdbVN.m4 + $(srcdir)/gdb.texinfo $(srcdir)/pretex.m4 $(srcdir)/none.m4 \ + $(srcdir)/all.m4 $(srcdir)/gdbinv-m.m4 $(srcdir)/gdbinv-s.m4 \ + gdbVN.m4 -all: gdb.info gdbint.info +all install: + +all-info: gdb.info gdbint.info #all: gdb.info gdb.dvi refcard.dvi gdb-internals gdbint.dvi -install: force +install-info: all-info for i in *.info* ; do \ echo Installing $$i... ; \ (cp $$i $(idestdir)/info/$$i.n \ @@ -84,14 +88,14 @@ rdl-apps.texi: ${READLINE_DIR}/inc-readline.texinfo \ # File to record current GDB version number (copied from main dir Makefile.in) gdbVN.m4 : ${gdbdir}/Makefile.in - ( VER=`sed <${gdbdir}/Makefile.in -n 's/VERSION = //p'` ;\ + ( VER=`sed <$(srcdir)/${gdbdir}/Makefile.in -n 's/VERSION = //p'` ;\ echo "_define__(<_GDB_VN__>,$$VER)" > gdbVN.m4 ) # GDB MANUAL: texinfo source, created by preprocessing w/m4 # Be sure to not create a bad gdb-all.texi if ${M4} is missing or aborts... gdb-all.texi: ${SFILES_DOCDIR} rm -f foobus.texinfo - ${M4} pretex.m4 none.m4 all.m4 gdb.texinfo >foobus.texinfo + (cd $(srcdir) ; ${M4} pretex.m4 none.m4 all.m4 gdb.texinfo) >foobus.texinfo rm -f gdb-all.texi mv foobus.texinfo gdb-all.texi @@ -108,7 +112,7 @@ gdb.dvi : gdb-all.texi rdl-apps.texi # cope with all the markup. In the meantime, we distribute the info # files gdb.info: gdb-all.texi - $(MAKEINFO) -o gdb.info $(srcdir)/gdb-all.texi + $(MAKEINFO) -o gdb.info gdb-all.texi # GDB INTERNALS MANUAL: TeX dvi file gdbint.dvi : gdbint.texinfo diff --git a/readline/Makefile.in b/readline/Makefile.in index b42edbafc63..6565e24e5c8 100644 --- a/readline/Makefile.in +++ b/readline/Makefile.in @@ -69,7 +69,9 @@ THINGS_TO_TAR = $(SOURCES) $(SUPPORT) STAGESTUFF = *.o -all: libreadline.a history.info readline.info +all: libreadline.a + +all-info: history.info readline.info history.info: history.texi - $(MAKEINFO) -o history.info $(srcdir)/history.texi @@ -105,6 +107,8 @@ install: includes $(INSTALL_PROG) libreadline.a $(DESTDIR)/libreadline.a.new -mv $(DESTDIR)/libreadline.a.new $(DESTDIR)/libreadline.a $(RANLIB) $(DESTDIR)/libreadline.a + +install-info: all-info for i in *.info* ; do \ echo Installing $$i... ; \ (cp $$i $(idestdir)/info/$$i.new \