Commit af2d0861 authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Track mk/config.h

See #200.
parent 1441846d
......@@ -3,16 +3,17 @@ module Rules.Config (configRules) where
import Base
import CmdLineFlag
import Rules.Actions
import Rules.Generators.GhcAutoconfH
configRules :: Rules ()
configRules = do
-- We always rerun the configure script in this mode, because the flags
-- passed to it can affect the contents of system.config file.
[configFile, "settings"] &%> \[cfg, settings] -> do
[configFile, "settings", configH] &%> \[cfg, settings, cfgH] -> do
alwaysRerun
case cmdConfigure of
RunConfigure args -> do
need [ settings <.> "in" ]
need [ settings <.> "in", cfgH <.> "in" ]
runConfigure "." [] [args]
SkipConfigure -> unlessM (doesFileExist cfg) $
putError $ "Configuration file " ++ cfg ++ " is missing.\n"
......
module Rules.Generators.GhcAutoconfH (generateGhcAutoconfH) where
module Rules.Generators.GhcAutoconfH (generateGhcAutoconfH, configH) where
import Base
import Expression
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment