From c94ca0f785aff000c160ea6f4d48234bf5af280c Mon Sep 17 00:00:00 2001
From: tobtoht <tob@featherwallet.org>
Date: Sat, 24 Feb 2024 20:07:53 +0100
Subject: [PATCH] depends: add command to print variables

---
 contrib/depends/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/contrib/depends/Makefile b/contrib/depends/Makefile
index a1c93ae00..f612dbffb 100644
--- a/contrib/depends/Makefile
+++ b/contrib/depends/Makefile
@@ -1,5 +1,9 @@
 .NOTPARALLEL :
 
+# Pattern rule to print variables, e.g. make print-all_packages
+print-%: FORCE
+	@echo '$($*)'
+
 SOURCES_PATH ?= $(BASEDIR)/sources
 BASE_CACHE ?= $(BASEDIR)/built
 FALLBACK_DOWNLOAD_PATH ?= https://downloads.getmonero.org/depends-sources
@@ -184,3 +188,4 @@ download: download-osx download-linux download-win download-freebsd download-and
  $(foreach package,$(all_packages),$(eval $(call ext_add_stages,$(package))))
 
 .PHONY: install cached download-one download-osx download-linux download-win download-freebsd download-android download check-packages check-sources
+.PHONY: FORCE