summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-09-13 14:13:12 +0000
committerIan Lynagh <igloo@earth.li>2008-09-13 14:13:12 +0000
commit63fdcd969b136f0aec446be4e9d0cc4bf9eb6544 (patch)
tree588819fc86347985bd4164e8df677fc30ccd248c /mk
parent65446998cecc828631beba145560933d7d15cf8e (diff)
downloadhaskell-63fdcd969b136f0aec446be4e9d0cc4bf9eb6544.tar.gz
Move the "show" target from target.mk to boilerplate.mk
target.mk isn't included everywhere, but show is always handy
Diffstat (limited to 'mk')
-rw-r--r--mk/boilerplate.mk9
-rw-r--r--mk/target.mk9
2 files changed, 9 insertions, 9 deletions
diff --git a/mk/boilerplate.mk b/mk/boilerplate.mk
index 8e4f32247b..0e7e752020 100644
--- a/mk/boilerplate.mk
+++ b/mk/boilerplate.mk
@@ -22,6 +22,15 @@ FPTOOLS_TOP := $(TOP)
# THIS RULE MUST REMAIN FIRST!
default: all
+#------------------------------------------------------------
+# Makefile debugging
+# to see the effective value used for a Makefile variable, do
+# make show VALUE=MY_VALUE
+#
+
+show:
+ @echo '$(VALUE)="$($(VALUE))"'
+
# -----------------------------------------------------------------------------
# Misc bits
diff --git a/mk/target.mk b/mk/target.mk
index 407a293ddc..37a72bcc0c 100644
--- a/mk/target.mk
+++ b/mk/target.mk
@@ -500,15 +500,6 @@ ifneq "$(TAGS_C_SRCS)" ""
endif
@( DEREFFED=`ls -l Makefile | sed -e 's/.*-> \(.*\)/\1/g'` && $(RM) `dirname $$DEREFFED`/TAGS && $(CP) TAGS `dirname $$DEREFFED` ) 2>/dev/null || echo TAGS file generated, perhaps copy over to source tree?
-#------------------------------------------------------------
-# Makefile debugging
-# to see the effective value used for a Makefile variable, do
-# make show VALUE=MY_VALUE
-#
-
-show:
- @echo '$(VALUE)="$($(VALUE))"'
-
################################################################################
#
# DocBook XML Documentation