diff options
author | Thorsten Glaser <tg@mirbsd.org> | 2009-12-18 20:23:26 +0059 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-18 22:20:48 +0100 |
commit | e1b4ab38975b8ebe4a5f5dc5692c9158ce1b5409 (patch) | |
tree | 6c819ee726a1a9807b9bfc4c13c0059cc708af41 | |
parent | 6a352a5e5d4502b4cbb1ecb1b2c635d87538404c (diff) |
Add “TOPDIR=… gmake show=FOO” functionality
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
-rw-r--r-- | rules.mk | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |