From ccec0786aa3b0268635ae5d90082f2a19603c254 Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Wed, 3 Jan 2018 17:30:52 +0100 Subject: [PATCH] Makefile: Add printvars phony target. --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 33e9c3d..edb1dc6 100644 --- a/Makefile +++ b/Makefile @@ -116,6 +116,16 @@ MANDIR := ${DATAROOTDIR}/man uninstall uninstall-bins uninstall-libs uninstall-includes \ clean distclean \ dep \ + printvars \ + +### Debug +printvars: + @$(foreach V, $(sort $(.VARIABLES)), \ + $(if $(filter-out environment% default automatic, $(origin $V)), \ + $(warning $V = $(value $V)) \ + $(if $(findstring ^$(value $V)%,^$($V)%),,$(warning $V == $($V))) \ + ) \ + ) ### Install tools INSTALL := install -- 2.11.4.GIT