# HG changeset patch # User Norm Jacobs # Date 1428935117 18000 # Node ID d88c5d15a4af593a9d49f647ed26c93c7cd8a655 # Parent ea36499292b95847ba73bb17288b90b966d44d8d 20869828 Userland makefiles should provide macro printing helpers diff -r ea36499292b9 -r d88c5d15a4af make-rules/shared-macros.mk --- a/make-rules/shared-macros.mk Wed Apr 22 23:13:31 2015 -0500 +++ b/make-rules/shared-macros.mk Mon Apr 13 09:25:17 2015 -0500 @@ -946,3 +946,10 @@ REQUIRED_PACKAGES += security/sudo include $(WS_MAKE_RULES)/environment.mk + +# A simple rule to print the value of any macro. Ex: +# $ gmake print-REQUIRED_PACKAGES +# Note that some macros are set on a per target basis, so what you see +# is not always what you get. +print-%: + @echo '$(subst ','\'',$*=$($*)) (origin: $(origin $*), flavor: $(flavor $*))'