added all-info and install-info targets
authorK. Richard Pixley <rich@cygnus>
Thu, 14 Nov 1991 08:54:39 +0000 (08:54 +0000)
committerK. Richard Pixley <rich@cygnus>
Thu, 14 Nov 1991 08:54:39 +0000 (08:54 +0000)
gdb/Makefile.in
gdb/doc/Makefile.in
readline/Makefile.in

index aadb3d1..11f577b 100644 (file)
@@ -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 
index 755109c..79831a6 100644 (file)
@@ -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
index b42edba..6565e24 100644 (file)
@@ -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 \