Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
7dc414ca
Commit
7dc414ca
authored
Jul 19, 2015
by
Andrey Mokhov
Browse files
Simplify Rules.Config.
parent
49419bc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Main.hs
View file @
7dc414ca
...
...
@@ -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
src/Rules/Config.hs
View file @
7dc414ca
module
Rules.Config
(
autoconfRules
,
config
ure
Rules
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'
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment