From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67A881DF75C for ; Fri, 2 May 2025 12:13:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746188022; cv=none; b=Ho87xSSt9BZaDmzBaTprJsV/OipnKznJr1cUGu8mSWyZSTD1aO3BsGw2Qbox6vW1qpIj58EeInLaDaYtTcuopdIdpuScMCcAi3JYnnHJm70BB4ftkiWwilF/MMGHEENPAPDcFEO+1pK5uhehdFHo/2MWb+E9kriqwq+o+xTsb8k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746188022; c=relaxed/simple; bh=Wqv20rtCE/TPJC/MEwKHG+Nmz1+BKzdkHeswtx0ONOE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=satSY8M1BXPysoEpVJa0YZwwt5ypCQiKAsTHoOEJM32fEL8FAhZvdPoslG/hraO3wYJKtWiVYrbXBaL16pRiEeTLc7Rj/wc1SgXgoYNjb4d/QYosrguu70UdWOunm35gAnDNIyKG8edQtLO192ekUUuMYmcPpxXlxEk8iAtWEsA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tsrUEIqq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tsrUEIqq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE8A0C4CEEB; Fri, 2 May 2025 12:13:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1746188021; bh=Wqv20rtCE/TPJC/MEwKHG+Nmz1+BKzdkHeswtx0ONOE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=tsrUEIqqAh6fOJNdjo3HBk4ULjVhZZWjdW4On40dLOZMQceuMfYC945VkGZn4ApVH T7wpOIOFJzoHVpeU4P8ZZk3eBR75i0qeH55oyp5Vi63KjfZr0Q8hcSC3yjAR5yMC/c fLZehVr5C+GsDu5+dH/uZTDcpXRjvgaXBd9Fcr7w/5GNTo5BrbSB7c8RwPzdwGTadQ m9/8Nvonpxsldvf8ZNo7SK0LSV3HqKI8J+a6nIGeacfWa+1tZxgxgEVJufxI4lhFSy R1w9T9azEFtf2BFQOlnHZYokwqcDjt/Lzk4m+aVli6R6fMxbbkRoJ1ze8+JLgarnAU ga4MQNEtyk/mQ== From: Daniel Gomez Date: Fri, 02 May 2025 14:13:21 +0200 Subject: [PATCH v2 04/10] Makefile: print target when debug Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250502-ansible_cfg_inventory-v2-4-d3c19ff4aa6e@samsung.com> References: <20250502-ansible_cfg_inventory-v2-0-d3c19ff4aa6e@samsung.com> In-Reply-To: <20250502-ansible_cfg_inventory-v2-0-d3c19ff4aa6e@samsung.com> To: Luis Chamberlain , Chuck Lever Cc: kdevops@lists.linux.dev, Daniel Gomez , Daniel Gomez X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2554; i=da.gomez@samsung.com; h=from:subject:message-id; bh=UeanKMQ1AMmUCPDQqZD3FfNuM+6+97Oi38vx1G/uYN0=; b=kA0DAAgBhfVupOnoE48ByyZiAGgUtuigE1sWN85X6cNTwjfjyU/FIEMkGjzR9TjKinsMOvvP7 okCMwQAAQgAHRYhBLKnqc/dA7VA/1iycYX1bqTp6BOPBQJoFLboAAoJEIX1bqTp6BOPPwgP+wcn /c7giK0L0FnQ4MBkW8to47pfuNcstm4lxnctGQrqJdncc+HbPmuv6iSJrsWvby0vLDls4EfE9sJ IRcHVBBEVGa5Z1eWOPBeO2aWX64oiqOmswng99WqWD5VjDQdkOrBCn/cZ+9eq6puJISaL2M8us8 3jgHNxsDf8DiVRTqJxeZZ1x0G//VsOZGboTrjuUcKkLpqB8SdnrqDqA/jdKVl1+0VHJjNgfoG0+ ppkOSPfxbjkv1r21SOa34Yl4+LClYk4K4gx+5xmiQx0prhXwrlHZ7I8plefeLgtnLMMYib+Kw/o VUiPWNAQ5UQks0+FwZvBcjkRtFjXQI8c622PWB4jxJrajCBXvqeeW1Uim0BoKNKRtm9yPQVwFBu HatFi5z2c1VjgdYl7oBPgo3iyJ3PF6NpdGLg7MhZAt6WpgI4qSvNxRwJB0q5RobhdTIh+23Nbfv qY3AikNYmhRS5ntF3PUvHjc8aWaWst+Cv0dsz/4oWNYkHMACcr9xAfMKrfqY9YghHwQtzWW8y5Y 7ptrL+RnzKB1/AzB0REH1DKf1rdRVOE45Bdqq01+fNnQD5fbR17F410tp4ej3IzSqjFgLUi/sRr wb7xMTinh9HmKtb/thLA7OkxlqlAWDoBQK1olzmTgQt+7I86CvdTnn6iCFZTOyfDFBonoIS+wlk tXaIC X-Developer-Key: i=da.gomez@samsung.com; a=openpgp; fpr=B2A7A9CFDD03B540FF58B27185F56EA4E9E8138F From: Daniel Gomez When debugging with V=1, print also the Makefile target before the command. This allows to speciy the target as well as keep verbosity of the command being executed. The only limitations is that commands are printed in one line. Example: make V=1 ==> [ansible.cfg] + ansible-playbook playbooks/ansible_cfg.yml --extra-vars=@./.extra_vars_auto.yaml [WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly changing source of code and can become unstable at any point. PLAY 1: ANSIBLE CONFIGURATION ROLE task 1. [started TASK: Gathering Facts on localhost] task 2. [started TASK: ansible_cfg : Import optional extra_args file on localhost] task 3. [started TASK: ansible_cfg : Generate kdevops ansible.cfg on localhost] ==> [inventory] + ansible-playbook playbooks/gen_hosts.yml --extra-vars=@./extra_vars.yaml {...} Before: make V=1 [WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly changing source of code and can become unstable at any point. PLAY 1: ANSIBLE CONFIGURATION ROLE task 1. [started TASK: Gathering Facts on localhost] task 2. [started TASK: ansible_cfg : Import optional extra_args file on localhost] task 3. [started TASK: ansible_cfg : Generate kdevops ansible.cfg on localhost] ansible-playbook \ playbooks/gen_hosts.yml \ --extra-vars=@./extra_vars.yaml [WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly changing source of code and can become unstable at any point. PLAY 1: GEN_HOSTS task 1. [started TASK: Gathering Facts on localhost] {...} Signed-off-by: Daniel Gomez --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b6133ed5415e01cf9af7c2a0ca40976746acd2fd..7d522d5f918cf81da6fec9258c8c174e48fed11a 100644 --- a/Makefile +++ b/Makefile @@ -38,8 +38,12 @@ KDEVOPS_DEPCHECK = .kdevops.depcheck PHONY += kconfig-help-menu +define print_target + echo "==> [$1]" +endef + ifeq ($(V),1) -export Q= +export Q=@$(call print_target,$@) && set -x && export NQ=true else export Q=@ -- 2.49.0