Browse Source

Makefile: added new target 'printvar'

- prints the value of a Makefile variable whose name is provided in
  variable 'v', e.g.,::
	make printvar v=exclude_modules
Daniel-Constantin Mierla 13 years ago
parent
commit
35baaf5150
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Makefile

+ 6 - 0
Makefile

@@ -1204,3 +1204,9 @@ dbschema:
 .PHONY: printcdefs
 printcdefs:
 	@echo -n $(C_DEFS)
+
+.PHONY: printvar
+printvar:
+	@echo "Content of <$(v)> is:"
+	@echo -n $($(v))
+	@echo