summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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