Browse Source

Add “TOPDIR=… gmake show=FOO” functionality

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Thorsten Glaser 15 years ago
parent
commit
e1b4ab3897
1 changed files with 6 additions and 0 deletions
  1. 6 0
      rules.mk

+ 6 - 0
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