]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb, gdbserver: Add missing install-dvi Makefile target
authorChristophe Lyon <christophe.lyon@linaro.org>
Thu, 4 Apr 2024 21:51:17 +0000 (21:51 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Wed, 10 Apr 2024 13:37:05 +0000 (13:37 +0000)
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>
gdb/Makefile.in
gdb/data-directory/Makefile.in
gdb/doc/Makefile.in
gdb/testsuite/Makefile.in
gdbserver/Makefile.in

index e9a6247c38d39d9e595b6d50120592da415bbf38..23894ea4a4da6c684c7f46d8522f7aaeabf85991 100644 (file)
@@ -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
index 720b983ef6cb82dd7ff69b700e44bff1910d5e12..c0419df86b3d7440eb60e1663994e3488b3e1d89 100644 (file)
@@ -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
index 04f9dbd27f026d1310ad08ada628f6104e9ccf74..8007f6373d40fcdfde30ba37c74b971a2c1c3595 100644 (file)
@@ -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)
index f6603daf7fdda4ab51ba2737e440a55f4cb3ddc7..f799f16c2bb63f5182b4d0bbaf6b2138b0b703e4 100644 (file)
@@ -105,6 +105,7 @@ INFODIRS=doc
 info:
 install-info:
 dvi:
+install-dvi:
 pdf:
 install-pdf:
 html:
index 5180e7336cb46bc7f251804582a94787af40d4c9..6148ccf9121bf3df9f751a79009d7e42f5bd53c7 100644 (file)
@@ -360,6 +360,7 @@ installcheck:
 check:
 info dvi pdf:
 install-info:
+install-dvi:
 install-pdf:
 html:
 install-html: