summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2015-05-28 19:26:44 +0200
committerThomas Miedema <thomasmiedema@gmail.com>2015-05-30 17:03:58 +0200
commit018fec02a8736043e3a41dd4e9a3c4a932dfc3dc (patch)
tree1747932bffbd9311e84f81047f66f52816402851 /rules
parent0a159e3ad7a56da41a7336fcec79d9ba37cd40cb (diff)
downloadhaskell-018fec02a8736043e3a41dd4e9a3c4a932dfc3dc.tar.gz
Build system: also clean the inplace wrapper
Running `make clean` inside `utils/runghc` now does: "rm" -rf utils/runghc/dist-install "rm" -rf inplace/bin/runghc "rm" -rf inplace/lib/bin/runghc Instead of just: "rm" -rf utils/runghc/dist-install "rm" -rf inplace/lib/bin/runghc I think this was just an oversight. [skip ci] Differential Revision: https://phabricator.haskell.org/D919
Diffstat (limited to 'rules')
-rw-r--r--rules/shell-wrapper.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/shell-wrapper.mk b/rules/shell-wrapper.mk
index dac90169cb..f5d91e35b7 100644
--- a/rules/shell-wrapper.mk
+++ b/rules/shell-wrapper.mk
@@ -33,6 +33,8 @@ endif
all_$1_$2 : $$($1_$2_INPLACE_WRAPPER)
+$(call clean-target,$1,$2_inplace_wrapper,$$($1_$2_INPLACE_WRAPPER))
+
$$($1_$2_INPLACE_WRAPPER): WRAPPER=$$@
ifeq "$$($1_$2_SHELL_WRAPPER)" "YES"
$$($1_$2_INPLACE_WRAPPER): $$($1_$2_SHELL_WRAPPER_NAME)