summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrzemyslaw Pawelczyk <przemoc@gmail.com>2018-01-03 17:30:52 +0100
committerPrzemyslaw Pawelczyk <przemoc@gmail.com>2018-01-03 17:30:52 +0100
commitccec0786aa3b0268635ae5d90082f2a19603c254 (patch)
tree15c76374c7d592a8bd7a8c37c8c21e9d56fef158
parent16cde6c32fb3e0640ac01ca5d8ddea127f59106c (diff)
Makefile: Add printvars phony target.
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
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