X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rules%2Fclean-target.mk;h=5da31fa881117d51628c8a9ae682e100c0aafecf;hb=1851bb3cb6b5e9f0d413da7afc9b58c768888ecf;hp=12c752857333bb85ecc22d64fba9616e9982826f;hpb=34cc75e1a62638f2833815746ebce0a9114dc26b;p=ghc-hetmet.git diff --git a/rules/clean-target.mk b/rules/clean-target.mk index 12c7528..5da31fa 100644 --- a/rules/clean-target.mk +++ b/rules/clean-target.mk @@ -1,3 +1,15 @@ +# ----------------------------------------------------------------------------- +# +# (c) 2009 The University of Glasgow +# +# This file is part of the GHC build system. +# +# To understand how the build system works and how to modify it, see +# http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture +# http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying +# +# ----------------------------------------------------------------------------- + define clean-target # args: $1 = dir, $2 = key, $3 = files/dirs to clean clean : clean_$1 @@ -5,5 +17,5 @@ clean : clean_$1 clean_$1 : clean_$1_$2 .PHONY: clean_$1_$2 clean_$1_$2: - $(RM) -rf $3 + "$$(RM)" $$(RM_OPTS_REC) $3 endef