Преглед на файлове

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 години
родител
ревизия
35baaf5150
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  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