Move Hadrian executable to /hadrian.
[ghc.git] / src / Rules / Clean.hs
index 357ac34..0bff316 100644 (file)
@@ -17,8 +17,7 @@ clean dir = do
 cleanRules :: Rules ()
 cleanRules = do
     "clean" ~> do
-        forM_ [Stage0 ..] $ \stage -> clean (buildRootPath -/- stageString stage)
-        clean (buildRootPath -/- "hadrian")
+        clean buildRootPath
         clean programInplacePath
         clean "inplace/lib"
         clean derivedConstantsPath