summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-03-25 12:34:30 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-03-28 01:19:48 -0400
commit89cb13153dbe9a88706c43dbf0f681e90ecaa599 (patch)
tree016cab4674618e256798efa7013320db6484e1cb
parentcc59648adbf480e6af14e31e9e46801ab095f11a (diff)
downloadhaskell-89cb13153dbe9a88706c43dbf0f681e90ecaa599.tar.gz
hadrian: Add show target to bindist makefile
Some build systems use "make show" to query facts about the bindist, for example: ``` make show VALUE=ProjectVersion > version ``` to determine the ProjectVersion
-rw-r--r--hadrian/bindist/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/hadrian/bindist/Makefile b/hadrian/bindist/Makefile
index fdeb06ace5..e9b1ce1cf7 100644
--- a/hadrian/bindist/Makefile
+++ b/hadrian/bindist/Makefile
@@ -76,6 +76,10 @@ endef
# QUESTION : should we use shell commands?
+show:
+ @echo '$(VALUE)="$($(VALUE))"'
+
+
.PHONY: install
ifeq "$(TargetOS_CPP)" "mingw32"