diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-03-25 12:34:30 +0000 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2022-03-25 12:35:36 +0000 |
commit | 4b6c4267b7bfcac19401f57cf6740220d12739dc (patch) | |
tree | 3cfa8666f82587dc427d24c4a3646b3cd29c208c | |
parent | 5ff690b8474c74e9c968ef31e568c1ad0fe719a1 (diff) | |
download | haskell-4b6c4267b7bfcac19401f57cf6740220d12739dc.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/Makefile | 4 |
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" |