diff options
author | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2018-01-03 17:30:52 +0100 |
---|---|---|
committer | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2018-01-03 17:30:52 +0100 |
commit | ccec0786aa3b0268635ae5d90082f2a19603c254 (patch) | |
tree | 15c76374c7d592a8bd7a8c37c8c21e9d56fef158 | |
parent | 16cde6c32fb3e0640ac01ca5d8ddea127f59106c (diff) |
Makefile: Add printvars phony target.
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |