aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1991-11-14 08:54:39 +0000
committerK. Richard Pixley <rich@cygnus>1991-11-14 08:54:39 +0000
commite92ee46965422f9014f97d4c22fd5adabbb38316 (patch)
treebf999087e03940c1ba16515816f9b8228239230c /gdb
parent58f81e16308f03a346e3e9719c2699a938d595cd (diff)
downloadgdb-e92ee46965422f9014f97d4c22fd5adabbb38316.zip
gdb-e92ee46965422f9014f97d4c22fd5adabbb38316.tar.gz
gdb-e92ee46965422f9014f97d4c22fd5adabbb38316.tar.bz2
added all-info and install-info targets
Diffstat (limited to 'gdb')
-rw-r--r--gdb/Makefile.in4
-rw-r--r--gdb/doc/Makefile.in20
2 files changed, 16 insertions, 8 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index aadb3d1..11f577b 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 755109c..79831a6 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