Commit 7dc414ca authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Simplify Rules.Config.

parent 49419bc5
......@@ -4,6 +4,5 @@ import Development.Shake
main = shakeArgs shakeOptions{shakeFiles="_build/"} $ do
oracleRules -- see module Rules.Oracles
packageRules -- see module Rules
autoconfRules -- see module Config
configureRules -- see module Config
configRules -- see module Rules.Config
generateTargets -- see module Rules
module Rules.Config (
autoconfRules, configureRules
configRules
) where
import Util
import Oracles.Base
autoconfRules :: Rules ()
autoconfRules = do
"configure" %> \out -> do
copyFile' (configPath </> "configure.ac") "configure.ac"
putColoured White $ "Running autoconf..."
cmd "bash autoconf" -- TODO: get rid of 'bash'
configureRules :: Rules ()
configureRules = do
configRules :: Rules ()
configRules = do
configPath </> "system.config" %> \out -> do
need [configPath </> "system.config.in", "configure"]
putColoured White "Running configure..."
cmd "bash configure" -- TODO: get rid of 'bash'
"configure" %> \out -> do
copyFile' (configPath </> "configure.ac") "configure.ac"
putColoured White $ "Running autoconf..."
cmd "bash autoconf" -- TODO: get rid of 'bash'
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