[sr-dev] git:master: Makefile: added new target 'printvar'

Daniel-Constantin Mierla miconda at gmail.com
Wed Sep 19 21:47:05 CEST 2012


Module: sip-router
Branch: master
Commit: 35baaf51504a2ba496a06830fe1b7da9a1d5b3a0
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=35baaf51504a2ba496a06830fe1b7da9a1d5b3a0

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Wed Sep 19 21:44:01 2012 +0200

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

---

 Makefile |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 49a73e3..f0df87d 100644
--- a/Makefile
+++ b/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




More information about the sr-dev mailing list