Expression: Don't re-export Base
[hadrian.git] / src / Rules / Install.hs
1 module Rules.Install (installTargets, installRules) where
2
3 import Base
4 import Expression
5 import GHC
6 import Rules.Generate
7
8 installTargets :: [FilePath]
9 installTargets = [ "inplace/lib/template-hsc.h"
10 , "inplace/lib/platformConstants" ]
11
12 installRules :: Rules ()
13 installRules = do
14 "inplace/lib/template-hsc.h" <~ pkgPath hsc2hs
15 "inplace/lib/platformConstants" <~ derivedConstantsPath
16 where
17 file <~ dir = file %> \out -> do
18 let source = dir -/- takeFileName out
19 copyFileChanged source out
20 putSuccess $ "| Installed " ++ source ++ " -> " ++ out