Simplify Rules.Config.
[hadrian.git] / src / Rules / Config.hs
1 module Rules.Config (
2 configRules
3 ) where
4
5 import Util
6 import Oracles.Base
7
8 configRules :: Rules ()
9 configRules = do
10 configPath </> "system.config" %> \out -> do
11 need [configPath </> "system.config.in", "configure"]
12 putColoured White "Running configure..."
13 cmd "bash configure" -- TODO: get rid of 'bash'
14
15 "configure" %> \out -> do
16 copyFile' (configPath </> "configure.ac") "configure.ac"
17 putColoured White $ "Running autoconf..."
18 cmd "bash autoconf" -- TODO: get rid of 'bash'