summaryrefslogtreecommitdiff
path: root/rules.mk
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2009-12-18 20:23:26 +0059
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-18 22:20:48 +0100
commite1b4ab38975b8ebe4a5f5dc5692c9158ce1b5409 (patch)
tree6c819ee726a1a9807b9bfc4c13c0059cc708af41 /rules.mk
parent6a352a5e5d4502b4cbb1ecb1b2c635d87538404c (diff)
Add “TOPDIR=… gmake show=FOO” functionality
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index 390b05d0a..7bc0b44d9 100644
--- a/rules.mk
+++ b/rules.mk
@@ -42,3 +42,9 @@ HOSTLDFLAGS?=
TARGET_CFLAGS:= $(strip -fwrapv -fno-ident ${TARGET_CFLAGS})
TARGET_CC:= $(strip ${TARGET_CC})
TARGET_CXX:= $(strip ${TARGET_CXX})
+
+ifneq (${show},)
+.DEFAULT_GOAL:= show
+show:
+ @$(info ${${show}})
+endif