[commit: ghc] master: Build system: also clean the inplace wrapper (018fec0)

git at git.haskell.org git at git.haskell.org
Sat May 30 15:09:01 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/018fec02a8736043e3a41dd4e9a3c4a932dfc3dc/ghc

>---------------------------------------------------------------

commit 018fec02a8736043e3a41dd4e9a3c4a932dfc3dc
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date:   Thu May 28 19:26:44 2015 +0200

    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


>---------------------------------------------------------------

018fec02a8736043e3a41dd4e9a3c4a932dfc3dc
 rules/shell-wrapper.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rules/shell-wrapper.mk b/rules/shell-wrapper.mk
index dac9016..f5d91e3 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)



More information about the ghc-commits mailing list