mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-01 16:31:33 +01:00
build: Add variable printing target to Makefiles
I kept finding myself needing these to debug our build system, since they are innocuous and are very helpful they probably belong in the codebase. Source: John Graham-Cumming https://www.cmcrossroads.com/article/printing-value-makefile-variable
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
# Distributed under the MIT software license, see the accompanying
|
# Distributed under the MIT software license, see the accompanying
|
||||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
|
# Pattern rule to print variables, e.g. make print-top_srcdir
|
||||||
|
print-%:
|
||||||
|
@echo $* = $($*)
|
||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I build-aux/m4
|
ACLOCAL_AMFLAGS = -I build-aux/m4
|
||||||
SUBDIRS = src
|
SUBDIRS = src
|
||||||
if ENABLE_MAN
|
if ENABLE_MAN
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
.NOTPARALLEL :
|
.NOTPARALLEL :
|
||||||
|
|
||||||
|
# Pattern rule to print variables, e.g. make print-top_srcdir
|
||||||
|
print-%:
|
||||||
|
@echo $* = $($*)
|
||||||
|
|
||||||
SOURCES_PATH ?= $(BASEDIR)/sources
|
SOURCES_PATH ?= $(BASEDIR)/sources
|
||||||
WORK_PATH = $(BASEDIR)/work
|
WORK_PATH = $(BASEDIR)/work
|
||||||
BASE_CACHE ?= $(BASEDIR)/built
|
BASE_CACHE ?= $(BASEDIR)/built
|
||||||
|
|||||||
Reference in New Issue
Block a user