diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2024-04-04 21:51:17 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2024-04-10 13:37:05 +0000 |
commit | 96c1bcb38bcb1fd1e861d1536ab4deecaaf2b7de (patch) | |
tree | 67fd29c70061a0cf38fb8b8ced79577daafacef7 /gdb | |
parent | ea83005a367456739e04b6434758e56c04e4d775 (diff) | |
download | gdb-96c1bcb38bcb1fd1e861d1536ab4deecaaf2b7de.zip gdb-96c1bcb38bcb1fd1e861d1536ab4deecaaf2b7de.tar.gz gdb-96c1bcb38bcb1fd1e861d1536ab4deecaaf2b7de.tar.bz2 |
gdb, gdbserver: Add missing install-dvi Makefile target
For some reason install-dvi is missing although other targets of the
same family are present. This looks like an oversight.
This enables calling 'make install-dvi' from the top-level build
directory.
Fix what looks like another oversight: include 'pdf' in 'all-doc' in
gdb/doc/Makefile.in.
Approved-By: Luis Machado <luis.machado@arm.com>
Tested-By: Luis Machado <luis.machado@arm.com>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/Makefile.in | 2 | ||||
-rw-r--r-- | gdb/data-directory/Makefile.in | 2 | ||||
-rw-r--r-- | gdb/doc/Makefile.in | 19 | ||||
-rw-r--r-- | gdb/testsuite/Makefile.in | 1 |
4 files changed, 20 insertions, 4 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index e9a6247..23894ea 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -2055,7 +2055,7 @@ check-headers: done .PHONY: check-headers -info install-info clean-info dvi pdf install-pdf html install-html: force +info install-info clean-info dvi install-dvi pdf install-pdf html install-html: force @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do # Traditionally "install" depends on "all". But it may be useful diff --git a/gdb/data-directory/Makefile.in b/gdb/data-directory/Makefile.in index 720b983..c0419df 100644 --- a/gdb/data-directory/Makefile.in +++ b/gdb/data-directory/Makefile.in @@ -429,7 +429,7 @@ maintainer-clean realclean distclean: clean .PHONY: install-info install-pdf install-html clean-info check installcheck: info dvi pdf html: -install-info install-pdf install-html: +install-info install-dvi install-pdf install-html: clean-info: # GNU Make has an annoying habit of putting *all* the Makefile variables diff --git a/gdb/doc/Makefile.in b/gdb/doc/Makefile.in index 04f9dbd..8007f63 100644 --- a/gdb/doc/Makefile.in +++ b/gdb/doc/Makefile.in @@ -24,6 +24,7 @@ prefix = @prefix@ infodir = @infodir@ datarootdir = @datarootdir@ docdir = @docdir@ +dvidir = @dvidir@ pdfdir = @pdfdir@ htmldir = @htmldir@ mandir = @mandir@ @@ -87,6 +88,8 @@ SET_TEXINPUTS = \ # Files which should be generated via 'info' and installed by 'install-info' INFO_DEPS = gdb.info stabs.info annotate.info +# Files which should be generated via 'dvi' and installed by 'install-dvi' +DVIFILES = gdb.dvi stabs.dvi refcard.dvi annotate.dvi # Files which should be generated via 'pdf' and installed by 'install-pdf' PDFFILES = gdb.pdf stabs.pdf refcard.pdf annotate.pdf # Files which should be generated via 'html' and installed by 'install-html' @@ -191,7 +194,7 @@ HAVE_NATIVE_GCORE_HOST = @HAVE_NATIVE_GCORE_HOST@ all: info info: $(INFO_DEPS) -dvi: gdb.dvi stabs.dvi refcard.dvi annotate.dvi +dvi: $(DVIFILES) ps: gdb.ps stabs.ps refcard.ps annotate.ps html: $(HTMLFILES) pdf: $(PDFFILES) @@ -233,7 +236,7 @@ Doxyfile-gdb-xref: $(srcdir)/Doxyfile-gdb-xref.in Doxyfile-gdbserver: $(srcdir)/Doxyfile-gdbserver.in $(doxyedit) $(srcdir)/Doxyfile-gdbserver.in >Doxyfile-gdbserver -all-doc: info dvi ps # pdf +all-doc: info dvi ps pdf diststuff: info man rm -f gdb-cfg.texi @@ -293,6 +296,18 @@ install-html: $(HTMLFILES) fi; \ done +dvi__strip_dir = `echo $$p | sed -e 's|^.*/||'`; + +install-dvi: $(DVIFILES) + @$(NORMAL_INSTALL) + test -z "$(dvidir)" || $(mkinstalldirs) "$(DESTDIR)$(dvidir)" + @list='$(DVIFILES)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(dvi__strip_dir) \ + echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(dvidir)/$$f'"; \ + $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(dvidir)/$$f"; \ + done + pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`; install-pdf: $(PDFFILES) diff --git a/gdb/testsuite/Makefile.in b/gdb/testsuite/Makefile.in index f6603da..f799f16 100644 --- a/gdb/testsuite/Makefile.in +++ b/gdb/testsuite/Makefile.in @@ -105,6 +105,7 @@ INFODIRS=doc info: install-info: dvi: +install-dvi: pdf: install-pdf: html: |