From patchwork Thu Apr 4 21:59:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 88060 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B219A385841D for ; Thu, 4 Apr 2024 21:59:44 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-oo1-xc32.google.com (mail-oo1-xc32.google.com [IPv6:2607:f8b0:4864:20::c32]) by sourceware.org (Postfix) with ESMTPS id 982933858C52 for ; Thu, 4 Apr 2024 21:59:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 982933858C52 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 982933858C52 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::c32 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712267963; cv=none; b=hNRzsOVegR+0wo5FnjdfOpCJekG/MC4XWqKmdqxrloRGyobgh4YVJYJjvgo/PSp59ows+OwHfBhTidkBMykwCrYkq4kL6+7RqT04uOE0XyrqC8TcSDE9sfMKl++Fzt8Ngw9IGt7cFYWC2MKUkBGlYlyjeN8kWKE3IpzZL7hLYLs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712267963; c=relaxed/simple; bh=VQKby/RJ17+tQKVVx+rC6NMDrz9jrDawNWGBcnrJo5Q=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=ulM7Td/LgWLj7bvG7RJDxE2VYLC2YVlHOrx12cQvrcm9TNYTz59SAsDWLouzQ7Byz7CpY2L6FpImAw/xqwqY2LO4ktuI/2ELQd1LohvTZMEam/rEJ4aDEJ7pB3hCd3tF87Ts0zhwqLyI8vYYA+njXTOHVSfke6jN4eSPuv8kqn8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oo1-xc32.google.com with SMTP id 006d021491bc7-5a51c063f99so858393eaf.0 for ; Thu, 04 Apr 2024 14:59:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712267959; x=1712872759; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=elyXEwshh6qUW0YdhwcN6Yn94t9e5IO91s32hRtu5gY=; b=KabOVkuKCA08KdYmxVT1uTFLEr9QtvXi8et8M3/RtBflmpJPxMG3EicnyD6HlpUWCp fmlQjDY7iUVnZfd4LAIESxkGXfKML4J0rjdEGUrTWwdy27wmF1oDvgYzz4Kv51n+rFMF ai78FZXJ6zwEavs5WP7Dgo/LOtP+mg+INDJOfLpo4Aw/tQPrZQTMfON0fLtZQ11V+UyO iJFQ4oWi0AFdIlTmgtbaxh/v6FcObuX2reJ2a42VCMRfywRpb70oOpkbUHrAOBcV6EHS +WrGUzeuyAy+cVo0s8zU5rSMYbKd3fndCv2SFa98lG0NdPyaXKqiem7Ifkoux2SfVFKp jWMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712267959; x=1712872759; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=elyXEwshh6qUW0YdhwcN6Yn94t9e5IO91s32hRtu5gY=; b=Zr3wJw9qLGV5Tq5tbO6ZtKMe+JEW2uqMtBi+HrqFCDO2IyMHaNcPxy4EvUPXPbVX7o eWwH3OOPRs5tctBT9aFbBJjGWLC5vUPiB80DNf3SSLinXVPbmTYPd3CPs2cg6mkgg9Rv lpINKtT+cEnCZ1ovOMAtF3pGNQogOU0ULuun1hRDkVGirXlnr4J+GW7F+V7spOQxy0hv cvOPQDogkR0jnO1zyty4+77K3ZSwK6BJPKVvebGEKiq3RLZWCzswbkDj26Viimozf1Ol H0DrFrdOeGVR8sjpoh7rEDMSXJxo9hiCRxmbqQm/v/ZQS4pmE0WDlv5DthL4kaqOos62 4Ejw== X-Gm-Message-State: AOJu0YwJjMKWrcMCQCXtYMZwrn7ok2WBCtqONc/Iv4Ob3BHaFzxU9fiB u5A8GlF7qqbtbg6w7USigTnxL7Aa+FKCJk+mfAqhefprZlsuomcA+Q5PezXIX8LfwxrCl76pm8Y N/FV0nA== X-Google-Smtp-Source: AGHT+IG5cIFvyNc6ngatnAaMPCfLjKJadz9fgKqL6WlWW7vg9l0a1cklEbYGYUW0YgCvkBPpFChbtQ== X-Received: by 2002:a05:6820:2713:b0:5a7:c78c:cd67 with SMTP id db19-20020a056820271300b005a7c78ccd67mr3859466oob.5.1712267959097; Thu, 04 Apr 2024 14:59:19 -0700 (PDT) Received: from localhost.localdomain ([139.178.84.207]) by smtp.gmail.com with ESMTPSA id b11-20020a4aac8b000000b005a4799f5428sm22809oon.21.2024.04.04.14.59.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 14:59:18 -0700 (PDT) From: Christophe Lyon To: gdb-patches@sourceware.org Cc: Christophe Lyon Subject: [PATCH] gdb: Add missing install-dvi Makefile target Date: Thu, 4 Apr 2024 21:59:10 +0000 Message-Id: <20240404215910.57477-1-christophe.lyon@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org 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. --- gdb/Makefile.in | 2 +- gdb/data-directory/Makefile.in | 2 +- gdb/doc/Makefile.in | 19 +++++++++++++++++-- gdb/testsuite/Makefile.in | 1 + 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 40732cb2227..d001359539a 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -2035,7 +2035,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 2a40be4ade0..2db8706eba6 100644 --- a/gdb/data-directory/Makefile.in +++ b/gdb/data-directory/Makefile.in @@ -422,7 +422,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 04f9dbd27f0..8007f6373d4 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 f6603daf7fd..f799f16c2bb 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: