소스 검색

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