summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-03-25 12:34:30 +0000
committerMatthew Pickering <matthewtpickering@gmail.com>2022-03-25 12:35:36 +0000
commit4b6c4267b7bfcac19401f57cf6740220d12739dc (patch)
tree3cfa8666f82587dc427d24c4a3646b3cd29c208c
parent5ff690b8474c74e9c968ef31e568c1ad0fe719a1 (diff)
downloadhaskell-wip/hadrian-show.tar.gz
hadrian: Add show target to bindist makefilewip/hadrian-show
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"